commit | 9db85f33c0d724ce9251ad80dff49aa7bdbd95af | [log] [tgz] |
---|---|---|
author | Salil <salil.mehta@huawei.com> | Fri Aug 18 12:31:38 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 18 10:31:56 2017 -0700 |
tree | 99f0645d93ca7bcf49e5e533c234bcdf94070e7a | |
parent | d36d36ceac11e514f1c313ea6ca7568e2463b6f2 [diff] |
net: hns3: Fixes the static checker error warning in hns3_get_link_ksettings() This patch fixes the static check error warning in hns3_get_link_ksettings() function by re-arranging the code. Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 Driver") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>