The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* ERR_PTR and PTR_ERR
@ 2010-05-16  8:58 Julia Lawall
  2010-05-16  9:05 ` Julia Lawall
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

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

Thread overview: 4+ 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  9:05 ` Julia Lawall
2010-05-16 17:37   ` Al Viro
2010-05-16 18:26     ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox