Skip to content

Commit 215cd99

Browse files
Sachin KamatLee Jones
authored andcommitted
mfd: pm8921-core: Remove unused variable
‘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>
1 parent 0c2d0ff commit 215cd99

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/mfd/pm8921-core.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,9 @@ static void pm8xxx_irq_mask_ack(struct irq_data *d)
186186
{
187187
struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
188188
unsigned int pmirq = irqd_to_hwirq(d);
189-
int irq_bit;
190189
u8 block, config;
191190

192191
block = pmirq / 8;
193-
irq_bit = pmirq % 8;
194192

195193
config = chip->config[pmirq] | PM_IRQF_MASK_ALL | PM_IRQF_CLR;
196194
pm8xxx_config_irq(chip, block, config);
@@ -200,11 +198,9 @@ static void pm8xxx_irq_unmask(struct irq_data *d)
200198
{
201199
struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d);
202200
unsigned int pmirq = irqd_to_hwirq(d);
203-
int irq_bit;
204201
u8 block, config;
205202

206203
block = pmirq / 8;
207-
irq_bit = pmirq % 8;
208204

209205
config = chip->config[pmirq];
210206
pm8xxx_config_irq(chip, block, config);

0 commit comments

Comments
 (0)