Skip to content

Commit

Permalink
[IRDA]: fix drivers/net/irda/ali-ircc.c:ali_ircc_init()
Browse files Browse the repository at this point in the history
The Coverity checker spotted, that from the changes from commit 
898b1d1 the
       if (ret)
               platform_driver_unregister(&ali_ircc_driver);
was dead code.

This patch changes this function to what seems to have been the 
intention.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jul 8, 2006
1 parent 1252ecf commit 9c6c679
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/irda/ali-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int __init ali_ircc_init(void)
{
ali_chip_t *chip;
chipio_t info;
int ret = -ENODEV;
int ret;
int cfg, cfg_base;
int reg, revision;
int i = 0;
Expand All @@ -160,6 +160,7 @@ static int __init ali_ircc_init(void)
return ret;
}

ret = -ENODEV;

/* Probe for all the ALi chipsets we know about */
for (chip= chips; chip->name; chip++, i++)
Expand Down

0 comments on commit 9c6c679

Please sign in to comment.