lkml.org 
[lkml]   [2018]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next] net: hns: Fix for variable may be used uninitialized warnings
From
From: Huazhong Tan <tanhuazhong@huawei.com>
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@ziepe.ca>
> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
> Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>

Applied, thank you.

\
 
 \ /
  Last update: 2018-01-22 21:37    [W:0.028 / U:3.828 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site