Re: [PATCH] platform: cznic: turris-omnia-mcu: Fix error check in omnia_mcu_register_trng()

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

 



On Thu, Sep 05, 2024 at 04:16:53PM +0300, Dan Carpenter wrote:
> The gpiod_to_irq() function never returns zero.  It returns negative
> error codes or a positive IRQ number.  Update the checking to check
> for negatives.
> 
> Fixes: 41bb142a4028 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Reviewed-by: Marek Behún <kabel@xxxxxxxxxx>




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux