ANDROID: xt_qtaguid: Remove unnecessary null checks to ifa_label
authorNathan Chancellor <natechancellor@gmail.com>
Sun, 1 Apr 2018 03:44:45 +0000 (20:44 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:45 +0000 (21:13 +0000)
commit10eaf1720116415ccc2666306e5b028d6d8f36ae
tree6b23ab7ed1057bc8e05f10e71f092b0d4acc1ff2
parent552c1028d4f97438e2e9c8bcb48437d47dd4922d
ANDROID: xt_qtaguid: Remove unnecessary null checks to ifa_label

'ifa_label' will never be NULL since it isn't a plain pointer but an
array of char values.

../net/netfilter/xt_qtaguid.c:971:11: warning: address of array
'ifa->ifa_label' will always evaluate to 'true'
[-Wpointer-bool-conversion]
                        ifa->ifa_label ? ifa->ifa_label : "(null)");
                        ~~~~~^~~~~~~~~ ~
../net/netfilter/xt_qtaguid.c:972:13: warning: address of array
'ifa->ifa_label' will always evaluate to 'true'
[-Wpointer-bool-conversion]
                if (ifa->ifa_label && !strcmp(ifname, ifa->ifa_label))
                    ~~~~~^~~~~~~~~ ~~

Change-Id: I3c87a5d4b830aaa21a59e9c39cfe0a1d60d7f830
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
net/netfilter/xt_qtaguid.c