modpost: remove unneeded local variable in contains_namespace()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 29 Oct 2019 12:38:09 +0000 (21:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Nov 2019 11:10:01 +0000 (20:10 +0900)
commit76b54cf033c9f2effc70066a2bbb2331013889a1
treea7df19ce2617fb722e7f9e7b72756d109eec0fc1
parentbc35d4bda205d85bf8f87bb013a59afb6b87bc89
modpost: remove unneeded local variable in contains_namespace()

The local variable, ns_entry, is unneeded.

While I was here, I also cleaned up the comparison with NULL or 0.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Matthias Maennich <maennich@google.com>
scripts/mod/modpost.c