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

Mark Brown broonie at kernel.org
Thu Jul 18 01:05:38 EST 2013


On Wed, Jul 17, 2013 at 03:26:38PM +0300, Dan Carpenter wrote:
> "xspi->irq" is unsigned int so it's never less than zero.  I have added
> a cast.

Why is this better than changing irq to a signed type?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130717/44a4d18c/attachment-0001.sig>


More information about the devicetree-discuss mailing list