Re: [PATCH] i2c: nomadik: remove an unnecessary NULL check in nmk_i2c_remove()

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

 



On Thu, Mar 28, 2019 at 3:16 PM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

> "res" can't be NULL because it's a pointer to somewhere in the middle of
> the "adev" struct.  Also probe() succeeded so there is no need to check
> here.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux