]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: sr9700: Replace mdelay() with msleep() in sr9700_bind()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:41:04 +0000 (16:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 20:45:15 +0000 (13:45 -0700)
commitf91f7231126c2cd9f1a74abdaa275db64d195219
tree091345bd62e495cac2c0d00b81718b5b4920098d
parent35121d368caf03de44a87749462a90fbd88f86d4
net: usb: sr9700: Replace mdelay() with msleep() in sr9700_bind()

sr9700_bind() is never called in atomic context.
It calls mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep().

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/sr9700.c