net: socket: simplify dev_ifconf handling
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Jul 2021 14:29:02 +0000 (16:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 13:20:25 +0000 (14:20 +0100)
commit876f0bf9d0d5189dca9341c8e8e8686b09db8398
tree399c3cf96ae9b0dd4506cb1f3ca03a5458ce8a9a
parentb0e99d03778b2418aec20db99d97d19d25d198b6
net: socket: simplify dev_ifconf handling

The dev_ifconf() calling conventions make compat handling
more complicated than necessary, simplify this by moving
the in_compat_syscall() check into the function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev_ioctl.c
net/socket.c