summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>2019-03-31 20:11:34 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-01 19:22:22 +0200
commit0514b848a82bfc2aceeb4b436912ff146c63f580 (patch)
tree65431d33434f177c8cd43a4ab19202db28191307
parent2e6c3a037f6b9134786c2a4468b7733501fb58bf (diff)
staging: rtlwifi: halmac: halmac_api.c: Compress two lines into one line
Challenge suggested by coccinelle. Compresses two lines into one line and remove unnecessary variable. Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtlwifi/halmac/halmac_api.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/rtlwifi/halmac/halmac_api.c b/drivers/staging/rtlwifi/halmac/halmac_api.c
index e75eb42009c8..be75731767ba 100644
--- a/drivers/staging/rtlwifi/halmac/halmac_api.c
+++ b/drivers/staging/rtlwifi/halmac/halmac_api.c
@@ -133,7 +133,6 @@ platform_reg_read_8_sdio(void *driver_adapter,
struct halmac_platform_api *halmac_platform_api,
u32 offset)
{
- u8 value8;
u32 halmac_offset = offset;
enum halmac_ret_status status = HALMAC_RET_SUCCESS;
@@ -146,10 +145,8 @@ platform_reg_read_8_sdio(void *driver_adapter,
return status;
}
- value8 = halmac_platform_api->SDIO_CMD52_READ(driver_adapter,
- halmac_offset);
-
- return value8;
+ return halmac_platform_api->SDIO_CMD52_READ(driver_adapter,
+ halmac_offset);
}
static enum halmac_ret_status