diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-07-27 15:57:58 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-27 13:45:14 -0700 |
commit | 2bcd619e6e7b992ddaa1caaeafd3eea6990de75c (patch) | |
tree | 1df773e9261113e5e8889a1d4f9e34d0ec20f7da /drivers/net/ethernet/amd/am79c961a.h | |
parent | sch_cake: Make gso-splitting configurable from userspace (diff) | |
download | linux-dev-2bcd619e6e7b992ddaa1caaeafd3eea6990de75c.tar.xz linux-dev-2bcd619e6e7b992ddaa1caaeafd3eea6990de75c.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/amd/am79c961a.h')
0 files changed, 0 insertions, 0 deletions