netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cqe, cqe_skb: return when both or when either NULL?
@ 2007-11-23 21:54 Roel Kluin
  2007-11-26  8:29 ` Jan-Bernd Themann
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2007-11-23 21:54 UTC (permalink / raw)
  To: netdev, themann

In function ehea_poll() drivers/net/ehea/ehea_main.c:667, in a loop cqe and
cqe_skb - both struct ehea_cqe pointers - are assigned:
--
cqe = ehea_poll_rq1(pr->qp, &wqe_index);
cqe_skb = ehea_poll_cq(pr->send_cq);

if (!cqe && !cqe_skb)
	return rx;
--
Is it intended that only when both are NULL there is a return, or should there
be returned when either is NULL (and the && replaced with ||).

If the code is ok as is, sorry for the noise.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-26  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 21:54 cqe, cqe_skb: return when both or when either NULL? Roel Kluin
2007-11-26  8:29 ` Jan-Bernd Themann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).