Skip to contentSkip to conversation

unnecessary GFP_ATOMIC in xpad driver

PATCH Applied Oliver Neukum 2 participants 2 messages Apr 3, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unnecessary GFP_ATOMIC in xpad driver

GFP_ATOMIC should not be used when GFP_KERNEL can be used.

---

drivers/input/joystick/xpad.c renamed from drivers/input/joystick/xpad.c.2 +2 -2
@@ -412,7 +412,7 @@ static int xpad_init_output(struct usb_i
 		return 0;
 
 	xpad->odata = usb_buffer_alloc(xpad->udev, XPAD_PKT_LEN,
-				       GFP_ATOMIC, &xpad->odata_dma );
+				       GFP_KERNEL, &xpad->odata_dma );
 	if (!xpad->odata)
 		goto fail1;
 
@@ -636,7 +636,7 @@ static int xpad_probe(struct usb_interfa
 		goto fail1;
 
 	xpad->idata = usb_buffer_alloc(udev, XPAD_PKT_LEN,
-				       GFP_ATOMIC, &xpad->idata_dma);
+				       GFP_KERNEL, &xpad->idata_dma);
 	if (!xpad->idata)
 		goto fail1;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html