summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>2019-03-31 20:11:33 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-01 19:22:22 +0200
commit2e6c3a037f6b9134786c2a4468b7733501fb58bf (patch)
tree4606f40d7f48fb8edc6b529297d4592897a62c01 /drivers
parentd3830cc03ee0021aa78e19c1b8c5589ba1308a97 (diff)
staging: rtlwifi: halmac: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
index 0bd6abdd0a68..0ae0d0291ba8 100644
--- a/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
+++ b/drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx_usb.c
@@ -192,7 +192,6 @@ halmac_cfg_rx_aggregation_88xx_usb(struct halmac_adapter *halmac_adapter,
u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
u32 halmac_offset)
{
- u8 value8;
void *driver_adapter = NULL;
struct halmac_api *halmac_api;
@@ -205,9 +204,7 @@ u8 halmac_reg_read_8_usb_88xx(struct halmac_adapter *halmac_adapter,
driver_adapter = halmac_adapter->driver_adapter;
halmac_api = (struct halmac_api *)halmac_adapter->halmac_api;
- value8 = PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
-
- return value8;
+ return PLATFORM_REG_READ_8(driver_adapter, halmac_offset);
}
/**