Skip to content

Commit a2a9e02

Browse files
Andrey Utkinhtejun
authored andcommitted
drivers/ata/pata_ep93xx.c: use signed int type for result of platform_get_irq()
[linux-3.16-rc5/drivers/ata/pata_ep93xx.c:929]: (style) Checking if unsigned variable 'irq' is less than zero. Source code is irq = platform_get_irq(pdev, 0); if (irq < 0) { but unsigned int irq; $ fgrep platform_get_irq `find . -name \*.h -print` ./include/linux/platform_device.h:extern int platform_get_irq(struct platform_device *, unsigned int); Now using "int" type instead of "unsigned int" for "irq" variable. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80401 Reported-by: David Binderman <[email protected]> Signed-off-by: Andrey Utkin <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent eec7e1c commit a2a9e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/pata_ep93xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
915915
struct ep93xx_pata_data *drv_data;
916916
struct ata_host *host;
917917
struct ata_port *ap;
918-
unsigned int irq;
918+
int irq;
919919
struct resource *mem_res;
920920
void __iomem *ide_base;
921921
int err;

0 commit comments

Comments
 (0)