Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1448648
| From | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mfd: arizona: Remove pointless switch case |
| Date | 2016-07-22 18:00 +0200 |
| Message-ID | <rXL1L-7Ib-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
There is no point in having an explicit case that does nothing but falls through to the default, simply remove the redundant case. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> --- drivers/mfd/arizona-irq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c index 5e18d3c..e54aa55 100644 --- a/drivers/mfd/arizona-irq.c +++ b/drivers/mfd/arizona-irq.c @@ -286,8 +286,6 @@ int arizona_irq_init(struct arizona *arizona) case IRQF_TRIGGER_RISING: case IRQF_TRIGGER_FALLING: break; - - case IRQ_TYPE_NONE: default: /* Device default */ arizona->pdata.irq_flags = IRQF_TRIGGER_LOW; -- 2.1.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] mfd: arizona: Remove pointless switch case Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2016-07-22 18:00 +0200 Re: [PATCH] mfd: arizona: Remove pointless switch case Bernd Petrovitsch <bernd@sysprog.at> - 2016-07-23 20:20 +0200
csiph-web