mfd: pm8921-core: Remove unused variable
authorSachin Kamat <sachin.kamat@samsung.com>
Tue, 24 Jun 2014 09:09:07 +0000 (14:39 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Jul 2014 13:58:09 +0000 (14:58 +0100)
‘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>
drivers/mfd/pm8921-core.c

index 959513803542ee6e3e0bfc6afd383144e356cbe1..39904f77c0496fbd7763cf12fee7cddf3d860fb0 100644 (file)
@@ -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);
@@ -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);