mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2e6c3a037f
commit
0514b848a8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user