media: pci: cx88: Replace mdelay() with msleep() in dvb_register()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 03:41:50 +0000 (23:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 27 Jul 2018 12:15:18 +0000 (08:15 -0400)
commit9d08ba6de0c52d87b1f9619df3f6faacde2134b7
tree4437c69fe80ae2b46513be527fe833cfff3c8e9e
parentdddaf754cb3af9fe779be1f6e117dc76e36cfdc2
media: pci: cx88: Replace mdelay() with msleep() in dvb_register()

dvb_register() 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cx88/cx88-dvb.c