Przeglądaj źródła

USB: storage: onetouch: unnecessary GFP_ATOMIC

No need to use GFP_ATOMIC to allocate buffers.

Signed-off-by: Oliver Neukum <neukum@b1-systems.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Oliver Neukum 15 lat temu
rodzic
commit
3756c7c091
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/usb/storage/onetouch.c

+ 1 - 1
drivers/usb/storage/onetouch.c

@@ -202,7 +202,7 @@ static int onetouch_connect_input(struct us_data *ss)
 		goto fail1;
 
 	onetouch->data = usb_buffer_alloc(udev, ONETOUCH_PKT_LEN,
-					  GFP_ATOMIC, &onetouch->data_dma);
+					  GFP_KERNEL, &onetouch->data_dma);
 	if (!onetouch->data)
 		goto fail1;