gpio: Remove impossible checks on container_of() result
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 9 Jan 2017 19:47:44 +0000 (11:47 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 15:01:27 +0000 (16:01 +0100)
commitfb505747c06b8894bccb18457fd11bad047384f4
tree1e97ee70cc956b527c97341dccdccb3a8db18eea
parente567c35f4909b6e752f63412ed6038c4d9aa9ede
gpio: Remove impossible checks on container_of() result

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@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c