Skip to content

Commit 25ce79d

Browse files
tititiou36davem330
authored andcommitted
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4f50ef1 commit 25ce79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/hso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ static struct hso_device *hso_create_device(struct usb_interface *intf,
23192319
{
23202320
struct hso_device *hso_dev;
23212321

2322-
hso_dev = kzalloc(sizeof(*hso_dev), GFP_ATOMIC);
2322+
hso_dev = kzalloc(sizeof(*hso_dev), GFP_KERNEL);
23232323
if (!hso_dev)
23242324
return NULL;
23252325

0 commit comments

Comments
 (0)