diff options
author | Oliver Neukum <oneukum@suse.com> | 2022-05-17 15:11:08 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2024-04-29 13:07:31 +0200 |
commit | f835f3ea6b1bcb51bc07f9074b71234a7a00d6e0 (patch) | |
tree | eb1039035340bdd45d9d61dadb12c84bca9d7901 /drivers/media/usb | |
parent | media: as102: avoid GFP_ATOMIC (diff) | |
download | linux-f835f3ea6b1bcb51bc07f9074b71234a7a00d6e0.tar.xz linux-f835f3ea6b1bcb51bc07f9074b71234a7a00d6e0.zip |
media: flexcop: unneeded ATOMIC
No need for GFP_ATOMIC during probe()
Link: https://lore.kernel.org/linux-media/20220517131109.28371-1-oneukum@suse.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r-- | drivers/media/usb/b2c2/flexcop-usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c index 790787f0eba8..0f807da4b65a 100644 --- a/drivers/media/usb/b2c2/flexcop-usb.c +++ b/drivers/media/usb/b2c2/flexcop-usb.c @@ -448,7 +448,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) /* creating iso urbs */ for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO, - GFP_ATOMIC); + GFP_KERNEL); if (fc_usb->iso_urb[i] == NULL) { ret = -ENOMEM; goto urb_error; @@ -481,7 +481,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) frame_offset += frame_size; } - if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_ATOMIC))) { + if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_KERNEL))) { err("submitting urb %d failed with %d.", i, ret); goto urb_error; } |