projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6cef26
)
page_pool: remove unnecessary variable init
author
Yunsheng Lin
<linyunsheng@huawei.com>
Thu, 15 Aug 2019 12:41:00 +0000
(20:41 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Aug 2019 18:50:37 +0000
(11:50 -0700)
Remove variable initializations in functions that
are followed by assignments before use
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/page_pool.c
patch
|
blob
|
history
diff --git
a/net/core/page_pool.c
b/net/core/page_pool.c
index 3272dc7a8c810bde18c1ccb1a6a7d425cf1e2cee..31187ff55cbc687be91903ce6469e0c5a95a1e76 100644
(file)
--- a/
net/core/page_pool.c
+++ b/
net/core/page_pool.c
@@
-61,7
+61,7
@@
static int page_pool_init(struct page_pool *pool,
struct page_pool *page_pool_create(const struct page_pool_params *params)
{
struct page_pool *pool;
- int err
= 0
;
+ int err;
pool = kzalloc_node(sizeof(*pool), GFP_KERNEL, params->nid);
if (!pool)