RE: [RFC 06/11] Add support for QP verbs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +
> > +	rc = ib_get_cached_gid(ibqp->device, attr->ah_attr.port_num,
> > +			       attr->ah_attr.grh.sgid_index, &gid, &gid_attr);
> > +	if (!rc && !memcmp(&gid, &zgid, sizeof(gid)))
> > +		rc = -ENOENT;
> > +
> > +	if (!rc && gid_attr.ndev) {

<snip>

> > +		}
> > +	}
> > +	if (rc)
> > +		return -EINVAL;
> 
> I think it is better to check "rc" right after call to ib_get_cached_gid().

Somehow this e-mail slipped.
Thanks, will update.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux