aboutsummaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorJia-Ju Bai <[email protected]>2018-07-27 16:25:07 +0800
committerDavid S. Miller <[email protected]>2018-07-27 13:45:14 -0700
commitd818c59a8f490ed8d07bdb4cc175dec97030df26 (patch)
tree42a774525820092c530ea1707f9c15c5ee793f0d /lib/pm-notifier-error-inject.c
parent89036f233a45d8d17c2de94850bd5e63f185da3d (diff)
net: jme: Replace mdelay() with msleep() and usleep_range() in jme_wait_link()
jme_wait_link() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep() and usleep_range(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions