Commit 887a65c4 authored by Vasundhara Volam's avatar Vasundhara Volam Committed by David S. Miller

be2net: fix wrong return value in be_check_ufi_compatibility()

In the commit a6e6ff6e
("be2net: simplify UFI compatibility checking"), a return value of "-1"
was incorrectly used in place of "false". This patch fixes it.

Fixes: a6e6ff6e ("be2net: simplify UFI compatibility checking")
Signed-off-by: default avatarVasundhara Volam <vasundhara.volam@avagotech.com>
Signed-off-by: default avatarSathya Perla <sathya.perla@avagotech.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc23d6b7
...@@ -4918,7 +4918,7 @@ static bool be_check_ufi_compatibility(struct be_adapter *adapter, ...@@ -4918,7 +4918,7 @@ static bool be_check_ufi_compatibility(struct be_adapter *adapter,
{ {
if (!fhdr) { if (!fhdr) {
dev_err(&adapter->pdev->dev, "Invalid FW UFI file"); dev_err(&adapter->pdev->dev, "Invalid FW UFI file");
return -1; return false;
} }
/* First letter of the build version is used to identify /* First letter of the build version is used to identify
......
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