Skip to content

Commit 873343e

Browse files
Yunsheng Lindavem330
authored andcommitted
page_pool: remove unnecessary variable init
Remove variable initializations in functions that are followed by assignments before use Signed-off-by: Yunsheng Lin <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b6cef26 commit 873343e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/page_pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int page_pool_init(struct page_pool *pool,
6161
struct page_pool *page_pool_create(const struct page_pool_params *params)
6262
{
6363
struct page_pool *pool;
64-
int err = 0;
64+
int err;
6565

6666
pool = kzalloc_node(sizeof(*pool), GFP_KERNEL, params->nid);
6767
if (!pool)

0 commit comments

Comments
 (0)