Re: [PATCH] mfd: arizona: Remove pointless switch case

From: Bernd Petrovitsch
Date: Sat Jul 23 2016 - 14:10:42 EST


Hi all!

On Fri, 2016-07-22 at 16:58 +0100, Charles Keepax wrote:
[...]
> Â case IRQF_TRIGGER_RISING:
> Â case IRQF_TRIGGER_FALLING:
> Â break;
> -
> - case IRQ_TYPE_NONE:
> Â default:

Don't know about the kernels coding rule in that case but personally, I
use that style to explicit list all enum/#define values so that it is
obvious that none was forgotten.
For the compiler output, it shouldn't matter anyways ...

MfG,
Bernd
--
mobile: +43 664 4416156 http://www.sysprog.at/
Linux Software Development, Consulting and Services