[lkml]   [2018]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [1/2] net: wireless: zydas: Replace mdelay with msleep in zd1201_probe
Jia-Ju Bai <> wrote:

> zd1201_probe() is never called in atomic context.
> zd1201_probe() is only set as ".probe" in struct usb_driver.
> Despite never getting called from atomic context, zd1201_probe()
> calls mdelay() to busily wait.
> This is not necessary and can be replaced with msleep() to
> avoid busy waiting.
> This is found by a static analysis tool named DCNS written by myself.
> And I also manually check it.
> Signed-off-by: Jia-Ju Bai <>

I need a review from someone else before I'm willing to take this.


 \ /
  Last update: 2018-04-25 10:16    [W:0.034 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site