commit | ba23dc642dffd1a97dc08480acc788fdb8632425 | [log] [tgz] |
---|---|---|
author | Jia-Ju Bai <baijiaju1990@gmail.com> | Fri Jul 27 16:41:04 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 27 13:45:15 2018 -0700 |
tree | 091345bd62e495cac2c0d00b81718b5b4920098d | |
parent | 6dff5add089f2cedd597937a3e39a01ebba8b7c8 [diff] |
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>