ANDROID: xt_qtaguid: Remove unnecessary null checks to device's name
authorNathan Chancellor <natechancellor@gmail.com>
Sun, 1 Apr 2018 03:56:23 +0000 (20:56 -0700)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:28:44 +0000 (02:28 +1000)
commitb0eee5cd08814dbae9f277723ce7b71e98498831
tree64403af5b97caeccb70e518c459337d709ccf32c
parent3c48ab9eafa3665de954cf37a312a314f8bcfd8e
ANDROID: xt_qtaguid: Remove unnecessary null checks to device's name

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

../net/netfilter/xt_qtaguid.c:1195:27: warning: address of array
'(*el_dev)->name' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (unlikely(!(*el_dev)->name)) {
                     ~~~~~~~~~~~~^~~~

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