OSDN Git Service

media: usb: hackrf: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Mon, 30 Jul 2018 09:33:20 +0000 (05:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 23:16:17 +0000 (19:16 -0400)
commit2c3449fb95c318920ca8dc645d918d408db219ac
tree50c6ab7f8534f3e1eaaf1370415b35c089522caa
parent7a3369e8a78538e813e96294b8c7fce9feb76e0f
media: usb: hackrf: Replace GFP_ATOMIC with GFP_KERNEL

hackrf_submit_urbs(), hackrf_alloc_stream_bufs() and hackrf_alloc_urbs()
are never called in atomic context.
They call usb_submit_urb(), usb_alloc_coherent() and usb_alloc_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/hackrf/hackrf.c