media: usb: em28xx: Replace GFP_ATOMIC with GFP_KERNEL in em28xx_init_usb_xfer()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Mon, 30 Jul 2018 09:25:07 +0000 (05:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 23:15:29 +0000 (19:15 -0400)
commit2453e60702e1a4d22720e3b6aac543e1a96fcd6b
tree65760501419c9e8942aef6ee69850d304f93156d
parent61e641f36ed81ae473177c085f0bfd83ad3b55ed
media: usb: em28xx: Replace GFP_ATOMIC with GFP_KERNEL in em28xx_init_usb_xfer()

em28xx_init_usb_xfer() is never called in atomic context.
It calls usb_submit_urb() with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

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: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/em28xx/em28xx-core.c