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)
committerChenbo Feng <fengc@google.com>
Fri, 22 Jun 2018 22:01:26 +0000 (22:01 +0000)
commit7cecc756ceae616e7c8ea1dbe59c5ed71b4966a4
tree749f43cca4bf8ccfee7c072faf76af21465f343c
parente7fd5b18769d5b807f2beb1c9045c059bccbd7ce
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>
(cherry picked from android-4.4 commit 207b579e3db6fd0cb6fe40ba3e929635ad748d89)
Signed-off-by: Chenbo Feng <fengc@google.com>
net/netfilter/xt_qtaguid.c