staging: rtlwifi: halmac: halmac_api.c: Compress two lines into one line
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Sun, 31 Mar 2019 14:41:34 +0000 (20:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2019 17:22:22 +0000 (19:22 +0200)
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>
drivers/staging/rtlwifi/halmac/halmac_api.c

index e75eb42009c88ac8c4effcf6315552061e83d1fc..be75731767ba5f9237c7d8397f9d92de98a4c775 100644 (file)
@@ -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