]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: drop null test before destroy functions
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:13 +0000 (14:15 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:01 +0000 (16:40 -0700)
commitd8c02d4de1974293ad1de8d43c9a9a1c29870713
tree100e9d1136cf7aa2c6a62f6d175314e43e41562b
parent0e24aa6d15f10b8e5941220b21c7d2a71f9cb861
ixgbe: drop null test before destroy functions

Orabug: 23177316

Remove unneeded NULL test.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@ expression x; @@
-if (x != NULL)
  \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Tested-by: Darin Miller <darin.j.miller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit edab421a57fbdb7f7b83fb494a48c47bc719a7f0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c