Commit 7997c367 authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman

staging: rtl8723bs: core: rtw_efuse.c: Compress two lines into one line

Challenge suggested by coccinelle.
Return value directly without saving it in a variable and remove that
variable.
Signed-off-by: default avatarPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1bba5b21
...@@ -125,11 +125,8 @@ Efuse_GetCurrentSize( ...@@ -125,11 +125,8 @@ Efuse_GetCurrentSize(
u8 efuseType, u8 efuseType,
bool bPseudoTest) bool bPseudoTest)
{ {
u16 ret = 0; return padapter->HalFunc.EfuseGetCurrentSize(padapter, efuseType,
bPseudoTest);
ret = padapter->HalFunc.EfuseGetCurrentSize(padapter, efuseType, bPseudoTest);
return ret;
} }
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */ /* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
...@@ -221,7 +218,6 @@ EFUSE_Read1Byte( ...@@ -221,7 +218,6 @@ EFUSE_Read1Byte(
struct adapter *Adapter, struct adapter *Adapter,
u16 Address) u16 Address)
{ {
u8 data;
u8 Bytetemp = {0x00}; u8 Bytetemp = {0x00};
u8 temp = {0x00}; u8 temp = {0x00};
u32 k = 0; u32 k = 0;
...@@ -253,8 +249,7 @@ u16 Address) ...@@ -253,8 +249,7 @@ u16 Address)
break; break;
} }
} }
data = rtw_read8(Adapter, EFUSE_CTRL); return rtw_read8(Adapter, EFUSE_CTRL);
return data;
} else } else
return 0xFF; return 0xFF;
...@@ -378,11 +373,8 @@ Efuse_PgPacketRead(struct adapter *padapter, ...@@ -378,11 +373,8 @@ Efuse_PgPacketRead(struct adapter *padapter,
u8 *data, u8 *data,
bool bPseudoTest) bool bPseudoTest)
{ {
int ret = 0; return padapter->HalFunc.Efuse_PgPacketRead(padapter, offset, data,
bPseudoTest);
ret = padapter->HalFunc.Efuse_PgPacketRead(padapter, offset, data, bPseudoTest);
return ret;
} }
int int
...@@ -392,11 +384,8 @@ Efuse_PgPacketWrite(struct adapter *padapter, ...@@ -392,11 +384,8 @@ Efuse_PgPacketWrite(struct adapter *padapter,
u8 *data, u8 *data,
bool bPseudoTest) bool bPseudoTest)
{ {
int ret; return padapter->HalFunc.Efuse_PgPacketWrite(padapter, offset, word_en,
data, bPseudoTest);
ret = padapter->HalFunc.Efuse_PgPacketWrite(padapter, offset, word_en, data, bPseudoTest);
return ret;
} }
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
...@@ -447,11 +436,9 @@ Efuse_WordEnableDataWrite(struct adapter *padapter, ...@@ -447,11 +436,9 @@ Efuse_WordEnableDataWrite(struct adapter *padapter,
u8 *data, u8 *data,
bool bPseudoTest) bool bPseudoTest)
{ {
u8 ret = 0; return padapter->HalFunc.Efuse_WordEnableDataWrite(padapter, efuse_addr,
word_en, data,
ret = padapter->HalFunc.Efuse_WordEnableDataWrite(padapter, efuse_addr, word_en, data, bPseudoTest); bPseudoTest);
return ret;
} }
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment