net: qlcnic: avoid superfluous assignement
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 10:07:37 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:47:00 +0000 (13:47 -0700)
Assigning NULL to parmeter dcb has no effect outside of the
inlined function.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h

index 9777e571352534e8060d2f023b5a8135e5aae2b9..f4aa6331b367b2913b34adbc4c1163c9d68abb16 100644 (file)
@@ -45,7 +45,6 @@ struct qlcnic_dcb {
 static inline void qlcnic_clear_dcb_ops(struct qlcnic_dcb *dcb)
 {
        kfree(dcb);
-       dcb = NULL;
 }
 
 static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb)