summaryrefslogtreecommitdiff
path: root/security/smack/smackfs.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-04-08 22:04:31 +0300
committerCasey Schaufler <casey@schaufler-ca.com>2020-05-07 00:46:26 +0300
commit00720f0e7f288d29681d265c23b22bb0f0f4e5b4 (patch)
tree69654d40a3c48c9472b35e5b1f59f51cf9ee05d3 /security/smack/smackfs.c
parent7111951b8d4973bda27ff663f2cf18b663d15b48 (diff)
downloadlinux-00720f0e7f288d29681d265c23b22bb0f0f4e5b4.tar.xz
smack: avoid unused 'sip' variable warning
The mix of IS_ENABLED() and #ifdef checks has left a combination that causes a warning about an unused variable: security/smack/smack_lsm.c: In function 'smack_socket_connect': security/smack/smack_lsm.c:2838:24: error: unused variable 'sip' [-Werror=unused-variable] 2838 | struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap; Change the code to use C-style checks consistently so the compiler can handle it correctly. Fixes: 87fbfffcc89b ("broken ping to ipv6 linklocal addresses on debian buster") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smackfs.c')
0 files changed, 0 insertions, 0 deletions