[patch] spi/xilinx: signedness issue checking platform_get_irq()

Stephen Warren swarren at wwwdotorg.org
Thu Jul 18 01:03:53 EST 2013


On 07/17/2013 06:26 AM, Dan Carpenter wrote:
> "xspi->irq" is unsigned int so it's never less than zero.  I have added
> a cast.

Um. Doesn't this just hide a warning, not solve the problem? If the
value can't be negative, so the if condition never fires, then the cast
won't change that...


More information about the devicetree-discuss mailing list