diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-04-04 06:04:39 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-08 12:05:24 -0400 |
commit | 4d2e11d42fe4117c24e79a012904cf0fa7fdcfe3 (patch) | |
tree | 6b621f71960a36c0155fa03c2cf04c6d8b43ff11 /drivers/infiniband/ulp | |
parent | d10bcf947a3ea240351a8182d71e4aa9c8ddba56 (diff) |
opa_vnic: fix check on record->event, incorrect operator used
The check on record->event is always true because the wrong operator
is being used, used && instead of ||
Addresses-Coverity: ("Constant expression result")
Fixes: fae7a699a925 ("opa_vnic: Convert vport_idr to XArray")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c b/drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c index 76cd09410d9a..be5befd92d16 100644 --- a/drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c +++ b/drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c | |||
@@ -869,7 +869,7 @@ static void opa_vnic_event(struct ib_event_handler *handler, | |||
869 | record->event, dev_name(&record->device->dev), | 869 | record->event, dev_name(&record->device->dev), |
870 | record->element.port_num); | 870 | record->element.port_num); |
871 | 871 | ||
872 | if (record->event != IB_EVENT_PORT_ERR || | 872 | if (record->event != IB_EVENT_PORT_ERR && |
873 | record->event != IB_EVENT_PORT_ACTIVE) | 873 | record->event != IB_EVENT_PORT_ACTIVE) |
874 | return; | 874 | return; |
875 | 875 | ||