diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-07-27 10:57:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-27 23:45:14 +0300 |
commit | 2bcd619e6e7b992ddaa1caaeafd3eea6990de75c (patch) | |
tree | 1df773e9261113e5e8889a1d4f9e34d0ec20f7da /drivers/net/ethernet/allwinner | |
parent | 2db6dc2662bab14e59517ab4b86a164cc4d2db42 (diff) | |
download | linux-2bcd619e6e7b992ddaa1caaeafd3eea6990de75c.tar.xz |
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/allwinner')
0 files changed, 0 insertions, 0 deletions