Skip to content

Commit a73f22f

Browse files
Andrzej Hajdahtejun
authored andcommitted
libata: samsung_cf: fix handling platform_get_irq result
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 88622d8 commit a73f22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/pata_samsung_cf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct s3c_ide_info {
7070
struct clk *clk;
7171
void __iomem *ide_addr;
7272
void __iomem *sfr_addr;
73-
unsigned int irq;
73+
int irq;
7474
enum s3c_cpu_type cpu_type;
7575
unsigned int fifo_status_reg;
7676
};

0 commit comments

Comments
 (0)