“feb85d9b1c47ea8dbcae559ff127b433fdb245b7”上不存在“drivers/pci/controller/dwc/pcie-designware.h”
提交 4d2e11d4 编写于 作者: C Colin Ian King 提交者: Jason Gunthorpe

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: fae7a699 ("opa_vnic: Convert vport_idr to XArray")
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Acked-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: NMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 d10bcf94
...@@ -869,7 +869,7 @@ static void opa_vnic_event(struct ib_event_handler *handler, ...@@ -869,7 +869,7 @@ static void opa_vnic_event(struct ib_event_handler *handler,
record->event, dev_name(&record->device->dev), record->event, dev_name(&record->device->dev),
record->element.port_num); record->element.port_num);
if (record->event != IB_EVENT_PORT_ERR || if (record->event != IB_EVENT_PORT_ERR &&
record->event != IB_EVENT_PORT_ACTIVE) record->event != IB_EVENT_PORT_ACTIVE)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册