linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rakhi Sharma <rakhish1994@gmail.com>
To: jic23@kernel.org
Cc: knaack.h@gmx.de, lars@metafoo.de, michal.simek@xilinx.com,
	linux-iio@vger.kernel.org, Rakhi Sharma <rakhish1994@gmail.com>
Subject: [PATCH 2/2] drivers: iio: adc: xilinx-xadc-events: Fixed a coding style warning.
Date: Sun,  7 Feb 2016 01:30:35 +0530	[thread overview]
Message-ID: <1454788835-11707-1-git-send-email-rakhish1994@gmail.com> (raw)

Fixed a warning.
WARNING: else is not generally useful after a break or return

Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
---
 drivers/iio/adc/xilinx-xadc-events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/xilinx-xadc-events.c b/drivers/iio/adc/xilinx-xadc-events.c
index edcf3aa..61309b3 100644
--- a/drivers/iio/adc/xilinx-xadc-events.c
+++ b/drivers/iio/adc/xilinx-xadc-events.c
@@ -92,7 +92,7 @@ static unsigned int xadc_get_alarm_mask(const struct iio_chan_spec *chan)
 {
 	if (chan->type == IIO_TEMP) {
 		return XADC_ALARM_OT_MASK;
-	} else {
+	}
 		switch (chan->channel) {
 		case 0:
 			return XADC_ALARM_VCCINT_MASK;
-- 
1.9.1

             reply	other threads:[~2016-02-06 20:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 20:00 Rakhi Sharma [this message]
2016-02-06 22:02 ` [PATCH 2/2] drivers: iio: adc: xilinx-xadc-events: Fixed a coding style warning Jonathan Cameron

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=1454788835-11707-1-git-send-email-rakhish1994@gmail.com \
    --to=rakhish1994@gmail.com \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=michal.simek@xilinx.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;
as well as URLs for NNTP newsgroup(s).