]> asedeno.scripts.mit.edu Git - linux.git/commit
net: amd: pcnet32: Replace GFP_ATOMIC with GFP_KERNEL in pcnet32_alloc_ring()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 07:57:58 +0000 (15:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 20:45:14 +0000 (13:45 -0700)
commit2bcd619e6e7b992ddaa1caaeafd3eea6990de75c
tree1df773e9261113e5e8889a1d4f9e34d0ec20f7da
parent2db6dc2662bab14e59517ab4b86a164cc4d2db42
net: amd: pcnet32: Replace GFP_ATOMIC with GFP_KERNEL in pcnet32_alloc_ring()

pcnet32_alloc_ring() is never called in atomic context.
It calls kcalloc() with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pcnet32.c