qlogic: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 13:07:56 +0000 (14:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:30:12 +0000 (00:30 -0800)
commit7061b2bdd620e4dda449d4d4db69de57751ab289
tree00225a357f902ed1f4ceb87507967de85e858180
parentadfde05166174ef1c4733dd7cfd4dc2b5f710ac8
qlogic: Deletion of unnecessary checks before two function calls

The functions kfree() and vfree() perform also input parameter validation.
Thus the test around their calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c