Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1452942

Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement

From zhuyj <zyjzyj2000@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement
Date 2016-08-01 05:00 +0200
Message-ID <s1bCp-gK-5@gated-at.bofh.it> (permalink)
References <s0VQZ-79F-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Sorry.
An inline function will be inserted into the calling function. Why
"Assigning NULL to parmeter dcb has no effect outside of the
inlined function." ?

On Sun, Jul 31, 2016 at 6:07 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> Assigning NULL to parmeter dcb has no effect outside of the
> inlined function.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h
> index 9777e57..f4aa633 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)
> --
> 2.8.1
>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] net: qlcnic: avoid superfluous assignement Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-07-31 12:10 +0200
  Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement zhuyj <zyjzyj2000@gmail.com> - 2016-08-01 05:00 +0200
    Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement David Miller <davem@davemloft.net> - 2016-08-01 05:40 +0200
  Re: [PATCH 1/1] net: qlcnic: avoid superfluous assignement David Miller <davem@davemloft.net> - 2016-08-01 22:50 +0200

csiph-web