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 <a.hajda@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Andrzej Hajda 2015-09-25 08:43:31 +02:00 committed by Tejun Heo
parent 88622d80af
commit a73f22f981
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ struct s3c_ide_info {
struct clk *clk; struct clk *clk;
void __iomem *ide_addr; void __iomem *ide_addr;
void __iomem *sfr_addr; void __iomem *sfr_addr;
unsigned int irq; int irq;
enum s3c_cpu_type cpu_type; enum s3c_cpu_type cpu_type;
unsigned int fifo_status_reg; unsigned int fifo_status_reg;
}; };