Skip to content

Commit

Permalink
libata: samsung_cf: fix handling platform_get_irq result
Browse files Browse the repository at this point in the history
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 <a.hajda@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Andrzej Hajda authored and htejun committed Sep 25, 2015
1 parent 88622d8 commit a73f22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_samsung_cf.c
Expand Up @@ -70,7 +70,7 @@ struct s3c_ide_info {
struct clk *clk;
void __iomem *ide_addr;
void __iomem *sfr_addr;
unsigned int irq;
int irq;
enum s3c_cpu_type cpu_type;
unsigned int fifo_status_reg;
};
Expand Down

0 comments on commit a73f22f

Please sign in to comment.