summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-08-15 20:41:00 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-15 11:50:37 -0700
commit873343e7d4964fa70cac22e2f7653f510bfaaa11 (patch)
treeb1c255d879622184d0e18e9c7dda01b5cb25bc59 /net/core
parentb6cef26fb90964a298226caa524697413b8a1579 (diff)
page_pool: remove unnecessary variable init
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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/page_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 3272dc7a8c81..31187ff55cbc 100644
--- 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)