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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux