Commit 215cd99a authored by Sachin Kamat's avatar Sachin Kamat Committed by Lee Jones

mfd: pm8921-core: Remove unused variable

‘irq_bit’ is unused in the function. Remove it.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 0c2d0ffb
...@@ -186,11 +186,9 @@ static void pm8xxx_irq_mask_ack(struct irq_data *d) ...@@ -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); struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
unsigned int pmirq = irqd_to_hwirq(d); unsigned int pmirq = irqd_to_hwirq(d);
int irq_bit;
u8 block, config; u8 block, config;
block = pmirq / 8; block = pmirq / 8;
irq_bit = pmirq % 8;
config = chip->config[pmirq] | PM_IRQF_MASK_ALL | PM_IRQF_CLR; config = chip->config[pmirq] | PM_IRQF_MASK_ALL | PM_IRQF_CLR;
pm8xxx_config_irq(chip, block, config); pm8xxx_config_irq(chip, block, config);
...@@ -200,11 +198,9 @@ static void pm8xxx_irq_unmask(struct irq_data *d) ...@@ -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); struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
unsigned int pmirq = irqd_to_hwirq(d); unsigned int pmirq = irqd_to_hwirq(d);
int irq_bit;
u8 block, config; u8 block, config;
block = pmirq / 8; block = pmirq / 8;
irq_bit = pmirq % 8;
config = chip->config[pmirq]; config = chip->config[pmirq];
pm8xxx_config_irq(chip, block, config); pm8xxx_config_irq(chip, block, config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment