]> git.baikalelectronics.ru Git - kernel.git/commit
net: hso: Use GFP_KERNEL instead of GFP_ATOMIC when possible
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 14 Feb 2022 19:09:06 +0000 (20:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Feb 2022 14:34:29 +0000 (14:34 +0000)
commita1f762d8961a170b952d7950075fc1fe84748dd7
tree3b62c97105f74409548d0519545294210854fe97
parentb9322939dcb09a879766d7fed04d9eef91fbd193
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>
drivers/net/usb/hso.c