staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.
PATCH v2 1/1 staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.
As usleep_range should not use min == max args.This patch fixes checkpatch
warning: usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.
---
Changes in v2:
update in commit message.
drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +2 -2
@@ -766,7 +766,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) }PRINT_WRN (GENERIC_DBG ,"[wilc txq]: warn, vmm table not clear yet, wait...\n" );release_bus (wilc,RELEASE_ALLOW_SLEEP ); -usleep_range (3000 ,3000 ); +usleep_range (3000 ,3100 );acquire_bus (wilc,ACQUIRE_AND_WAKEUP ); } }while (!wilc->quit);
@@ -800,7 +800,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)break ; }else {release_bus (wilc,RELEASE_ALLOW_SLEEP ); -usleep_range (3000 ,3000 ); +usleep_range (3000 ,3100 );acquire_bus (wilc,ACQUIRE_AND_WAKEUP );PRINT_WRN (GENERIC_DBG ,"Can't get VMM entery - reg = %2x\n" , reg); }
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 6 lines · Rakhi Sharma
As
usleep_rangeshould not use min == max args.This patch fixes checkpatch
warning:usleep_rangeshould not use min == max args; seeDocumentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.
Quoted 7 lines
Signed-off-by Rakhi Sharma <[email protected]>---
Changes in v2:
update in commit message.drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This patch doesn't apply to my tree :(
Greg KH
maintainerQuoted 6 lines · Rakhi Sharma
As
usleep_rangeshould not use min == max args.This patch fixes checkpatch
warning:usleep_rangeshould not use min == max args; seeDocumentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.
Quoted 7 lines
Signed-off-by Rakhi Sharma <[email protected]>---
Changes in v2:
update in commit message.drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This patch doesn't apply to my tree :(