]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: remove unused param from audit_log_format()
authorAlex Dewar <alex.dewar90@gmail.com>
Fri, 28 Aug 2020 13:55:23 +0000 (14:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2020 16:08:51 +0000 (09:08 -0700)
commit9dd09fd967497bc6eed1b86fe6a9965c6cda8bb4
tree3a162e1b913a7d9e397cdbf67996d1e068b9d752
parent3dd27969c90dd77a605b8a60ab0186b4c29c42d6
netlabel: remove unused param from audit_log_format()

Commit f5d9f269e82d ("netlabel: fix problems with mapping removal")
added a check to return an error if ret_val != 0, before ret_val is
later used in a log message. Now it will unconditionally print "...
res=1". So just drop the check.

Addresses-Coverity: ("Dead code")
Fixes: f5d9f269e82d ("netlabel: fix problems with mapping removal")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_domainhash.c