* [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.
@ 2016-02-27 15:35 Rakhi Sharma
2016-03-02 16:25 ` [Outreachy kernel] " Greg KH
2016-03-02 18:49 ` Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: Rakhi Sharma @ 2016-02-27 15:35 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Rakhi Sharma
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/.
Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
---
Changes in v2:
update in commit message.
drivers/staging/wilc1000/wilc_wlan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index 83af51b..8d6a457 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -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);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Outreachy kernel] [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.
2016-02-27 15:35 [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args Rakhi Sharma
@ 2016-03-02 16:25 ` Greg KH
2016-03-02 18:49 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2016-03-02 16:25 UTC (permalink / raw)
To: Rakhi Sharma; +Cc: outreachy-kernel
On Sat, Feb 27, 2016 at 09:05:53PM +0530, Rakhi Sharma wrote:
> 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/.
>
> Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
> ---
> 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 :(
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.
2016-02-27 15:35 [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args Rakhi Sharma
2016-03-02 16:25 ` [Outreachy kernel] " Greg KH
@ 2016-03-02 18:49 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2016-03-02 18:49 UTC (permalink / raw)
To: Rakhi Sharma; +Cc: outreachy-kernel
On Sat, Feb 27, 2016 at 09:05:53PM +0530, Rakhi Sharma wrote:
> 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/.
>
> Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
> ---
> 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 :(
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-02 18:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-27 15:35 [PATCH v2] staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args Rakhi Sharma
2016-03-02 16:25 ` [Outreachy kernel] " Greg KH
2016-03-02 18:49 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.