lkml.org 
[lkml]   [2010]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectERR_PTR and PTR_ERR
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


\
 
 \ /
  Last update: 2010-05-16 11:01    [W:0.312 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site