Re: [PATCH net-next] net: hns: Fix for variable may be used uninitialized warnings

From: David Miller
Date: Mon Jan 22 2018 - 15:37:07 EST


From: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
Date: Thu, 18 Jan 2018 10:37:34 +0800

> When !CONFIG_REGMAP hns throws compiler warnings since
> dsaf_read_syscon ignores the return result from regmap_read,
> which allows val to be uninitialized.
>
> Fixes: 86897c960b49 ("net: hns: add syscon operation for dsaf")
> Reported-by: Jason Gunthorpe <jgg@xxxxxxxx>
> Signed-off-by: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
> Signed-off-by: Yunsheng Lin <linyunsheng@xxxxxxxxxx>

Applied, thank you.