commit | 2bcd619e6e7b992ddaa1caaeafd3eea6990de75c | [log] [tgz] |
---|---|---|
author | Jia-Ju Bai <baijiaju1990@gmail.com> | Fri Jul 27 15:57:58 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 27 13:45:14 2018 -0700 |
tree | 1df773e9261113e5e8889a1d4f9e34d0ec20f7da | |
parent | 2db6dc2662bab14e59517ab4b86a164cc4d2db42 [diff] |
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>