All of lore.kernel.org
 help / color / mirror / Atom feed
* ERR_PTR and PTR_ERR
@ 2010-05-16  8:58 ` Julia Lawall
  0 siblings, 0 replies; 8+ messages in thread
From: Julia Lawall @ 2010-05-16  8:58 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors

I see a number of occurrences of code like the following:

 	if (IS_ERR(alg))
		return ERR_PTR(PTR_ERR(alg));

Is there any reason why the second line couldn't just be return alg?

julia

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

end of thread, other threads:[~2010-05-16 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16  8:58 ERR_PTR and PTR_ERR Julia Lawall
2010-05-16  8:58 ` Julia Lawall
2010-05-16  9:05 ` Julia Lawall
2010-05-16  9:05   ` Julia Lawall
2010-05-16 17:37   ` Al Viro
2010-05-16 17:37     ` Al Viro
2010-05-16 18:26     ` Julia Lawall
2010-05-16 18:26       ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.