page_pool: fix compile warning when CONFIG_PAGE_POOL is disabled
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 19 Jun 2019 22:15:52 +0000 (00:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2019 01:26:06 +0000 (21:26 -0400)
commit497ad9f5b2dc86b733761b9afa44ecfa2f17be65
tree7c6f7680246219995492146e79ae3832d118a422
parent84ce4d0f9f55b4f4ca4d4edcbb54a23d9dad1aae
page_pool: fix compile warning when CONFIG_PAGE_POOL is disabled

Kbuild test robot reported compile warning:
 warning: no return statement in function returning non-void
in function page_pool_request_shutdown, when CONFIG_PAGE_POOL is disabled.

The fix makes the code a little more verbose, with a descriptive variable.

Fixes: 99c07c43c4ea ("xdp: tracking page_pool resources and safe removal")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/page_pool.h