mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
staging: rtl8712: Fixed a comparision coding style warning.
WARNING: Comparisons should place the constant on the right side of the test Fixed this warning by placing the constant on right side. Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>- Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
343af6379e
commit
f7099ad7bd
1 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,7 @@ static u8 efuse_is_empty(struct _adapter *padapter, u8 *empty)
|
||||||
|
|
||||||
/* read one byte to check if E-Fuse is empty */
|
/* read one byte to check if E-Fuse is empty */
|
||||||
if (efuse_one_byte_rw(padapter, true, 0, &value)) {
|
if (efuse_one_byte_rw(padapter, true, 0, &value)) {
|
||||||
if (0xFF == value)
|
if (value == 0xFF)
|
||||||
*empty = true;
|
*empty = true;
|
||||||
else
|
else
|
||||||
*empty = false;
|
*empty = false;
|
||||||
|
@ -345,7 +345,7 @@ static u8 fix_header(struct _adapter *padapter, u8 header, u16 header_addr)
|
||||||
ret = false;
|
ret = false;
|
||||||
} else if (pkt.data[i * 2] != value) {
|
} else if (pkt.data[i * 2] != value) {
|
||||||
ret = false;
|
ret = false;
|
||||||
if (0xFF == value) /* write again */
|
if (value == 0xFF) /* write again */
|
||||||
efuse_one_byte_write(padapter, addr,
|
efuse_one_byte_write(padapter, addr,
|
||||||
pkt.data[i * 2]);
|
pkt.data[i * 2]);
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ static u8 fix_header(struct _adapter *padapter, u8 header, u16 header_addr)
|
||||||
ret = false;
|
ret = false;
|
||||||
} else if (pkt.data[i * 2 + 1] != value) {
|
} else if (pkt.data[i * 2 + 1] != value) {
|
||||||
ret = false;
|
ret = false;
|
||||||
if (0xFF == value) /* write again */
|
if (value == 0xFF) /* write again */
|
||||||
efuse_one_byte_write(padapter, addr + 1,
|
efuse_one_byte_write(padapter, addr + 1,
|
||||||
pkt.data[i * 2 +
|
pkt.data[i * 2 +
|
||||||
1]);
|
1]);
|
||||||
|
@ -420,7 +420,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
|
||||||
}
|
}
|
||||||
/* write header fail */
|
/* write header fail */
|
||||||
bResult = false;
|
bResult = false;
|
||||||
if (0xFF == efuse_data)
|
if (efuse_data == 0xFF)
|
||||||
return bResult; /* nothing damaged. */
|
return bResult; /* nothing damaged. */
|
||||||
/* call rescue procedure */
|
/* call rescue procedure */
|
||||||
if (!fix_header(padapter, efuse_data, efuse_addr))
|
if (!fix_header(padapter, efuse_data, efuse_addr))
|
||||||
|
|
Loading…
Reference in a new issue