audit: Delete unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 13 Jan 2016 14:18:55 +0000 (09:18 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Jan 2016 14:18:55 +0000 (09:18 -0500)
commitd865e573b8a4f30fbb74fa7666ca81e3132eb547
treedc60aea2e30e642328342413c2de397c010f0d46
parent1194b994bec308433cc84ffdb92fd668713b8f93
audit: Delete unnecessary checks before two function calls

The functions consume_skb() and kfree_skb() test whether their argument
is NULL and then return immediately.
Thus the tests around their calls are not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[PM: tweak patch prefix]
Signed-off-by: Paul Moore <pmoore@redhat.com>
kernel/audit.c