X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=rdma%2Fres-qp.c;h=e30d68edc7d8461e0ba853f2cc17d7c85b350189;hb=f93134841ea8a75fde92615c0c223afc99396ff1;hp=954e465de6fd6a5343c06698e093a38c51213e8d;hpb=50cf6348998e6d00cfcb110860444df71cd047fe;p=mirror_iproute2.git diff --git a/rdma/res-qp.c b/rdma/res-qp.c index 954e465d..e30d68ed 100644 --- a/rdma/res-qp.c +++ b/rdma/res-qp.c @@ -90,11 +90,8 @@ static int res_qp_line(struct rd *rd, const char *name, int idx, if (!nla_line[RDMA_NLDEV_ATTR_RES_LQPN] || !nla_line[RDMA_NLDEV_ATTR_RES_SQ_PSN] || !nla_line[RDMA_NLDEV_ATTR_RES_TYPE] || - !nla_line[RDMA_NLDEV_ATTR_RES_STATE] || - (!nla_line[RDMA_NLDEV_ATTR_RES_PID] && - !nla_line[RDMA_NLDEV_ATTR_RES_KERN_NAME])) { + !nla_line[RDMA_NLDEV_ATTR_RES_STATE]) return MNL_CB_ERROR; - } if (nla_line[RDMA_NLDEV_ATTR_PORT_INDEX]) port = mnl_attr_get_u32(nla_line[RDMA_NLDEV_ATTR_PORT_INDEX]);