]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: qlcnic: avoid superfluous assignement
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 10:07:37 +0000 (12:07 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 20:46:53 +0000 (12:46 -0800)
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>
Orabug: 25605962
(cherry picked from commit 43dcff349f091b6a2f5f491c35d89b173df41acf)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
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)