diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-08 21:04:31 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2020-05-06 14:46:26 -0700 |
commit | 00720f0e7f288d29681d265c23b22bb0f0f4e5b4 (patch) | |
tree | 69654d40a3c48c9472b35e5b1f59f51cf9ee05d3 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 7111951b8d4973bda27ff663f2cf18b663d15b48 (diff) |
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 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions