tun: Adjust on-stack tun_page initialization.
authorDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 00:53:46 +0000 (16:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 00:53:46 +0000 (16:53 -0800)
commit6f0271d92963bc8588ad7058622ec7b1e94852de
tree6da9106579a3209ce868af5d0b653383465876c0
parentf9e06c45cb28beb30a6a474952ead7da2b8940f3
tun: Adjust on-stack tun_page initialization.

Instead of constantly playing with the struct initializer
syntax trying to make gcc and CLang both happy, just clear
it out using memset().

>> drivers/net/tun.c:2503:42: warning: Using plain integer as NULL pointer

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c