]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49a805490f67a7fd7b964989d6e049497d71c2c2
tree65760501419c9e8942aef6ee69850d304f93156d
parent450f04408a4b8e6743c8cbf53c3ded37982f476b
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