Re: [PATCH] can: mpc5xxx_can: check of_iomap return before use

From: Fabio Estevam
Date: Mon Jul 09 2018 - 15:35:44 EST


On Mon, Jul 9, 2018 at 4:31 PM, Nicholas Mc Guire <der.herr@xxxxxxx> wrote:

> I donÂt think so the code above this part return 0 on error and a
> valid frequency on success so returning -ENOMEM would probably be
> mistaken as a frequency !

Now that I looked closely in the function context I see it makes sense
to return 0 :-)

Thanks