Re: ERR_PTR and PTR_ERR

From: Julia Lawall
Date: Sun May 16 2010 - 05:05:35 EST


On Sun, 16 May 2010, Julia Lawall wrote:

> 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?

Hmm, never mind. It seems to address a type problem.

julia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/