Skip to content

Commit

Permalink
media: flexcop: unneeded ATOMIC
Browse files Browse the repository at this point in the history
No need for GFP_ATOMIC during probe()

Link: https://lore.kernel.org/linux-media/[email protected]
Signed-off-by: Oliver Neukum <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
oneukum authored and mchehab committed Apr 29, 2024
1 parent 30f7bc0 commit f835f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/usb/b2c2/flexcop-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f835f3e

Please sign in to comment.