Re: [PATCH] gpio: Remove impossible checks on container_of() result

From: Linus Walleij
Date: Wed Jan 11 2017 - 10:02:08 EST


On Mon, Jan 9, 2017 at 8:47 PM, Stephen Boyd <sboyd@xxxxxxxxxxxxxx> wrote:

> container_of() does pointer math on the pointer that's passed in.
> If it were to return a NULL pointer the value passed in would
> need to be perfectly offset from 0 to make that so. Remove these
> checks because they don't make sense.
>
> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>

Good point.

Patch applied.

Yours,
Linus Walleij