Skip to content

Commit

Permalink
page_pool: remove unnecessary variable init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yunsheng Lin authored and David S. Miller committed Aug 15, 2019
1 parent b6cef26 commit 873343e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/page_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 873343e

Please sign in to comment.