Commit 25ce79db authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller
Browse files

net: hso: Use GFP_KERNEL instead of GFP_ATOMIC when possible



hso_create_device() is only called from function that already use
GFP_KERNEL. And all the callers are called from the probe function.

So there is no need here to explicitly require a GFP_ATOMIC when
allocating memory.

Use GFP_KERNEL instead.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4f50ef15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2319,7 +2319,7 @@ static struct hso_device *hso_create_device(struct usb_interface *intf,
{
	struct hso_device *hso_dev;

	hso_dev = kzalloc(sizeof(*hso_dev), GFP_ATOMIC);
	hso_dev = kzalloc(sizeof(*hso_dev), GFP_KERNEL);
	if (!hso_dev)
		return NULL;