[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200605.131138.784441206945490177.davem@davemloft.net>
Date: Fri, 05 Jun 2020 13:11:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: kuba@...nel.org, mkubecek@...e.cz, f.fainelli@...il.com,
andrew@...n.ch, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] ethtool: linkinfo: remove an unnecessary NULL check
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Fri, 5 Jun 2020 14:04:13 +0300
> This code generates a Smatch warning:
>
> net/ethtool/linkinfo.c:143 ethnl_set_linkinfo()
> warn: variable dereferenced before check 'info' (see line 119)
>
> Fortunately, the "info" pointer is never NULL so the check can be
> removed.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied.
Powered by blists - more mailing lists