diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-14 22:09:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-15 17:34:29 +0300 |
commit | 25ce79db8042d364fe957d51e734f14d5b0c933a (patch) | |
tree | 3b62c97105f74409548d0519545294210854fe97 /drivers | |
parent | 4f50ef152ec652cf1f1d3031019828b170406ebf (diff) | |
download | linux-25ce79db8042d364fe957d51e734f14d5b0c933a.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/hso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index f97813a4e8d1..f8221a7acf62 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -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; |