mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
staging: rtl8188eu: replace EFUSE_GetEfuseDefinition(..., TYPE_EFUSE_MAX_SECTION, &a) with a = EFUSE_MAX_SECTION_88E
This makes the code easier to read. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
28d040fb72
commit
f573fed712
1 changed files with 1 additions and 4 deletions
|
|
@ -483,14 +483,11 @@ int Efuse_PgPacketRead(struct adapter *pAdapter, u8 offset, u8 *data)
|
|||
u8 hoffset = 0, hworden = 0;
|
||||
u8 tmpidx = 0;
|
||||
u8 tmpdata[8];
|
||||
u8 max_section = 0;
|
||||
u8 tmp_header = 0;
|
||||
|
||||
EFUSE_GetEfuseDefinition(pAdapter, EFUSE_WIFI, TYPE_EFUSE_MAX_SECTION, (void *)&max_section);
|
||||
|
||||
if (!data)
|
||||
return false;
|
||||
if (offset > max_section)
|
||||
if (offset > EFUSE_MAX_SECTION_88E)
|
||||
return false;
|
||||
|
||||
memset(data, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue