From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Amrani, Ram" Subject: RE: [RFC 06/11] Add support for QP verbs Date: Mon, 19 Sep 2016 09:00:26 +0000 Message-ID: References: <1473696465-27986-1-git-send-email-Ram.Amrani@qlogic.com> <1473696465-27986-7-git-send-email-Ram.Amrani@qlogic.com> <20160915130556.GA26069@leon.nu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20160915130556.GA26069-2ukJVAZIZ/Y@public.gmane.org> Content-Language: en-US Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: "dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , "davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org" , "Yuval.Mintz-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org" , "Ariel.Elior-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org" , "Michal.Kalderon-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org" , "rajesh.borundia-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org" , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org > > + > > + rc =3D 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 =3D -ENOENT; > > + > > + if (!rc && gid_attr.ndev) { > > + } > > + } > > + if (rc) > > + return -EINVAL; >=20 > 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html