Skip to content

Commit

Permalink
mfd: pm8921-core: Remove unused variable
Browse files Browse the repository at this point in the history
‘irq_bit’ is unused in the function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Sachin Kamat authored and Lee Jones committed Jul 9, 2014
1 parent 0c2d0ff commit 215cd99
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/mfd/pm8921-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,9 @@ static void pm8xxx_irq_mask_ack(struct irq_data *d)
{
struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
unsigned int pmirq = irqd_to_hwirq(d);
int irq_bit;
u8 block, config;

block = pmirq / 8;
irq_bit = pmirq % 8;

config = chip->config[pmirq] | PM_IRQF_MASK_ALL | PM_IRQF_CLR;
pm8xxx_config_irq(chip, block, config);
Expand All @@ -200,11 +198,9 @@ static void pm8xxx_irq_unmask(struct irq_data *d)
{
struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
unsigned int pmirq = irqd_to_hwirq(d);
int irq_bit;
u8 block, config;

block = pmirq / 8;
irq_bit = pmirq % 8;

config = chip->config[pmirq];
pm8xxx_config_irq(chip, block, config);
Expand Down

0 comments on commit 215cd99

Please sign in to comment.