X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fstaging%2Frtl8188eu%2Fhal%2Frtl8188e_hal_init.c;h=1c63658322471b0284e6001856ed305f92b9b30d;hb=f0deefa679af621c51453b114b6977151b62cd39;hp=d1086699f952c04967e4823bc62120ecc1be0ccc;hpb=f7ea4be434fe7ea38699d14c1192481899e6ac94;p=linux-2.6-microblaze.git diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c index d1086699f952..1c6365832247 100644 --- a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c @@ -168,14 +168,14 @@ void rtw_hal_notch_filter(struct adapter *adapter, bool enable) static s32 _LLTWrite(struct adapter *padapter, u32 address, u32 data) { s32 status = _SUCCESS; - s32 count = 0; + s32 count; u32 value = _LLT_INIT_ADDR(address) | _LLT_INIT_DATA(data) | _LLT_OP(_LLT_WRITE_ACCESS); u16 LLTReg = REG_LLT_INIT; usb_write32(padapter, LLTReg, value); /* polling */ - do { + for (count = 0; ; count++) { value = usb_read32(padapter, LLTReg); if (_LLT_OP_VALUE(value) == _LLT_NO_ACTIVE) break; @@ -185,7 +185,7 @@ static s32 _LLTWrite(struct adapter *padapter, u32 address, u32 data) break; } udelay(5); - } while (count++); + } return status; }