Commit ee7a3764 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski

net: hns3: clean up a return in hclge_tm_bp_setup()

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201023112212.GA282278@mwandaSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 435ccfa8
......@@ -1373,7 +1373,7 @@ static int hclge_tm_bp_setup(struct hclge_dev *hdev)
return ret;
}
return ret;
return 0;
}
int hclge_pause_setup_hw(struct hclge_dev *hdev, bool init)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment