diff options
author | Sukadev Bhattiprolu <sukadev@linux.ibm.com> | 2021-06-24 07:13:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-24 21:22:24 +0300 |
commit | 154b3b2a6ffca445379063ef49f71895104d5a5e (patch) | |
tree | e64c5d03696c7ce472b121992d37a039880e0fbd /drivers/net/ethernet/ibm | |
parent | f6ebca8efa52e4ae770f0325d618e7bcf08ada0c (diff) | |
download | linux-154b3b2a6ffca445379063ef49f71895104d5a5e.tar.xz |
ibmvnic: parenthesize a check
Parenthesize a check to be more explicit and to fix a sparse warning
seen on some distros.
Fixes: 91dc5d2553fbf ("ibmvnic: fix miscellaneous checks")
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index ede65b32f821..1c572491441c 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -3266,7 +3266,7 @@ static int enable_scrq_irq(struct ibmvnic_adapter *adapter, /* H_EOI would fail with rc = H_FUNCTION when running * in XIVE mode which is expected, but not an error. */ - if (rc && rc != H_FUNCTION) + if (rc && (rc != H_FUNCTION)) dev_err(dev, "H_EOI FAILED irq 0x%llx. rc=%ld\n", val, rc); } |