[lkml]   [2017]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] gpio: Remove impossible checks on container_of() result
On Mon, Jan 9, 2017 at 8:47 PM, Stephen Boyd <> 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 <>

Good point.

Patch applied.

Linus Walleij

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