[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201026161744.4235569d@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Mon, 26 Oct 2020 16:17:44 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Yisen Zhuang <yisen.zhuang@...wei.com>,
Salil Mehta <salil.mehta@...wei.com>,
"David S. Miller" <davem@...emloft.net>,
Huazhong Tan <tanhuazhong@...wei.com>,
Yonglong Liu <liuyonglong@...wei.com>,
Yufeng Mo <moyufeng@...wei.com>,
Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com>,
Guangbin Huang <huangguangbin2@...wei.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] net: hns3: clean up a return in hclge_tm_bp_setup()
On Fri, 23 Oct 2020 14:22:12 +0300 Dan Carpenter wrote:
> Smatch complains that "ret" might be uninitialized if we don't enter
> the loop. We do always enter the loop so it's a false positive, but
> it's cleaner to just return a literal zero and that silences the
> warning as well.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied, thanks!
Powered by blists - more mailing lists