Browse Source

net: qlcnic: avoid superfluous assignement

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>
xypron.glpk@gmx.de 9 years ago
parent
commit
43dcff349f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h

+ 0 - 1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h

@@ -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)