Skip to content

Commit

Permalink
mfd: htc-i2cpld: Remove unneded ret variable
Browse files Browse the repository at this point in the history
The ret variable is not needed since is not used in the
function. Remove the variable and just return 0 instead.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Javier Martinez Canillas authored and Lee Jones committed Oct 30, 2015
1 parent ea50e9d commit a48baac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mfd/htc-i2cpld.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ static int htcpld_setup_chip_irq(
struct htcpld_data *htcpld;
struct htcpld_chip *chip;
unsigned int irq, irq_end;
int ret = 0;

/* Get the platform and driver data */
htcpld = platform_get_drvdata(pdev);
Expand All @@ -333,7 +332,7 @@ static int htcpld_setup_chip_irq(
irq_clear_status_flags(irq, IRQ_NOREQUEST | IRQ_NOPROBE);
}

return ret;
return 0;
}

static int htcpld_register_chip_i2c(
Expand Down

0 comments on commit a48baac

Please sign in to comment.