[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1407432050-5624-3-git-send-email-ninox@posteo.net>
Date: Thu, 7 Aug 2014 19:20:50 +0200
From: Andreas Schlick <ninox@...teo.net>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jes Sorensen <Jes.Sorensen@...hat.com>,
Larry Finger <Larry.Finger@...inger.net>,
linux-wireless@...r.kernel.org, Andreas Schlick <ninox@...teo.net>
Subject: [PATCH 2/2] staging: rtl8723au: Remove unnecessary bit masking.
Signed-off-by: Andreas Schlick <ninox@...teo.net>
---
drivers/staging/rtl8723au/core/rtw_efuse.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_efuse.c b/drivers/staging/rtl8723au/core/rtw_efuse.c
index 0bec131..abc5d3c 100644
--- a/drivers/staging/rtl8723au/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723au/core/rtw_efuse.c
@@ -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++;
}
--
2.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists