Commit 43dcff34 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by David S. Miller

net: qlcnic: avoid superfluous assignement

Assigning NULL to parmeter dcb has no effect outside of the
inlined function.
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58d5aaea
...@@ -45,7 +45,6 @@ struct qlcnic_dcb { ...@@ -45,7 +45,6 @@ struct qlcnic_dcb {
static inline void qlcnic_clear_dcb_ops(struct qlcnic_dcb *dcb) static inline void qlcnic_clear_dcb_ops(struct qlcnic_dcb *dcb)
{ {
kfree(dcb); kfree(dcb);
dcb = NULL;
} }
static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb) static inline int qlcnic_dcb_get_hw_capability(struct qlcnic_dcb *dcb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment