]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: Remove unnecessary bit masking.
authorAndreas Schlick <ninox@posteo.net>
Thu, 7 Aug 2014 17:20:50 +0000 (19:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:14 +0000 (12:23 -0700)
Signed-off-by: Andreas Schlick <ninox@posteo.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_efuse.c

index 0bec1316af568f8594b4d415ff16aacaea41549d..abc5d3cefecfcc2d1a8a4622c316f92418d42446 100644 (file)
@@ -156,8 +156,7 @@ ReadEFuseByte23a(struct rtw_adapter *Adapter, u16 _offset, u8 *pbuf)
        /* Check bit 32 read-ready */
        retry = 0;
        value32 = rtl8723au_read32(Adapter, EFUSE_CTRL);
-       /* while(!(((value32 >> 24) & 0xff) & 0x80)  && (retry<10)) */
-       while (!(((value32 >> 24) & 0xff) & 0x80) && (retry<10000)) {
+       while (!((value32 >> 24) & 0x80) && retry < 10000) {
                value32 = rtl8723au_read32(Adapter, EFUSE_CTRL);
                retry++;
        }