net: usb: sr9700: Replace mdelay() with msleep() in sr9700_bind()
commitba23dc642dffd1a97dc08480acc788fdb8632425
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:41:04 +0000 (27 16:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 20:45:15 +0000 (27 13:45 -0700)
tree091345bd62e495cac2c0d00b81718b5b4920098d
parent6dff5add089f2cedd597937a3e39a01ebba8b7c8
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