From: xypron.glpk@gmx.de Date: Sun, 31 Jul 2016 10:07:37 +0000 (+0200) Subject: net: qlcnic: avoid superfluous assignement X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43dcff349f091b6a2f5f491c35d89b173df41acf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: qlcnic: avoid superfluous assignement Assigning NULL to parmeter dcb has no effect outside of the inlined function. Signed-off-by: Heinrich Schuchardt Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h index 9777e5713525..f4aa6331b367 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h +++ b/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)