]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2a28c5f1aee960cabbf57a9d2025d04c734bc8b
tree6da9106579a3209ce868af5d0b653383465876c0
parent33ea688308d82e46c563b2289e221186f9321553
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