Skip to content

Commit

Permalink
ARM: pxa: pxa_cplds: signedness bug in probe
Browse files Browse the repository at this point in the history
"base_irq" needs to be signed for the error handling to work.  Also we
can remove the initialization because we re-assign it later.

Fixes: aa8d6b7 ('ARM: pxa: pxa_cplds: add lubbock and mainstone IO')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Robert Jarzmik authored and Arnd Bergmann committed May 22, 2015
1 parent 632a686 commit bd7413a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/pxa_cplds_irqs.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static int cplds_probe(struct platform_device *pdev)
struct resource *res;
struct cplds *fpga;
int ret;
unsigned int base_irq = 0;
int base_irq;
unsigned long irqflags = 0;

fpga = devm_kzalloc(&pdev->dev, sizeof(*fpga), GFP_KERNEL);
Expand Down

0 comments on commit bd7413a

Please sign in to comment.