diff options
author | Vasundhara Volam <vasundhara.volam@avagotech.com> | 2015-07-10 05:32:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-10 23:24:29 -0700 |
commit | 887a65c4ab1511a9afc8a20e5507bec3d074f867 (patch) | |
tree | c4cc70cd5942fefa0ef64af227e5399a7e5fe1b3 /drivers | |
parent | bc23d6b7ab051106b700869e7ee09e8aec6864f2 (diff) |
be2net: fix wrong return value in be_check_ufi_compatibility()
In the commit a6e6ff6eee12f3e
("be2net: simplify UFI compatibility checking"), a return value of "-1"
was incorrectly used in place of "false". This patch fixes it.
Fixes: a6e6ff6eee12f3e ("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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 8b81e23ae9ba..8ef7ea5d8f4a 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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 |