From 0514b848a82bfc2aceeb4b436912ff146c63f580 Mon Sep 17 00:00:00 2001 From: Payal Kshirsagar Date: Sun, 31 Mar 2019 20:11:34 +0530 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtlwifi/halmac/halmac_api.c | 7 ++----- 1 file 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 -- cgit v1.2.3