mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
be2net: fix wrong return value in be_check_ufi_compatibility()
In the commita6e6ff6eee
("be2net: simplify UFI compatibility checking"), a return value of "-1" was incorrectly used in place of "false". This patch fixes it. Fixes:a6e6ff6eee
("be2net: simplify UFI compatibility checking") Signed-off-by: Vasundhara Volam <vasundhara.volam@avagotech.com> Signed-off-by: Sathya Perla <sathya.perla@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bc23d6b7ab
commit
887a65c4ab
1 changed files with 1 additions and 1 deletions
|
@ -4918,7 +4918,7 @@ static bool be_check_ufi_compatibility(struct be_adapter *adapter,
|
|||
{
|
||||
if (!fhdr) {
|
||||
dev_err(&adapter->pdev->dev, "Invalid FW UFI file");
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* First letter of the build version is used to identify
|
||||
|
|
Loading…
Reference in a new issue