public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
To: <lee.jones@linaro.org>
Cc: <patches@opensource.wolfsonmicro.com>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] mfd: arizona: Remove pointless switch case
Date: Fri, 22 Jul 2016 16:58:53 +0100	[thread overview]
Message-ID: <1469203133-21491-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> (raw)

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

             reply	other threads:[~2016-07-22 15:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 15:58 Charles Keepax [this message]
2016-07-23 17:41 ` [PATCH] mfd: arizona: Remove pointless switch case Bernd Petrovitsch
2016-08-08  8:09   ` Charles Keepax

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1469203133-21491-1-git-send-email-ckeepax@opensource.wolfsonmicro.com \
    --to=ckeepax@opensource.wolfsonmicro.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox