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>
This commit is contained in:
committed by
David S. Miller
parent
4f50ef152e
commit
25ce79db80
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user