All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Marc Titinger <mtitinger@baylibre.com>,
	Matt Ranostay <mranostay@gmail.com>,
	linux-iio@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH 2/3] iio: in2xx-adc: Remove unnecessary cast
Date: Thu,  9 Dec 2021 17:17:29 +0100	[thread overview]
Message-ID: <20211209161730.396848-2-lars@metafoo.de> (raw)
In-Reply-To: <20211209161730.396848-1-lars@metafoo.de>

`buf` is cast to a const char *, but `buf` is already a const char *, so
the case is unnecessary.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 drivers/iio/adc/ina2xx-adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c
index 352f27657238..08f243f5b92b 100644
--- a/drivers/iio/adc/ina2xx-adc.c
+++ b/drivers/iio/adc/ina2xx-adc.c
@@ -550,7 +550,7 @@ static ssize_t ina2xx_allow_async_readout_store(struct device *dev,
 	bool val;
 	int ret;
 
-	ret = strtobool((const char *) buf, &val);
+	ret = strtobool(buf, &val);
 	if (ret)
 		return ret;
 
-- 
2.30.2


  reply	other threads:[~2021-12-09 16:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09 16:17 [PATCH 1/3] iio: as3935: Remove unnecessary cast Lars-Peter Clausen
2021-12-09 16:17 ` Lars-Peter Clausen [this message]
     [not found]   ` <CAHp75Vd+NoRzbJAKX7kZ_JBF0fC6xZc2rkLezbuTozSsAp8X8A@mail.gmail.com>
2021-12-10  8:52     ` [PATCH 2/3] iio: in2xx-adc: " Lars-Peter Clausen
2021-12-09 16:17 ` [PATCH 3/3] iio: vz89x: " Lars-Peter Clausen
     [not found] ` <CAHp75VdDB92KGALRhBoepmBZQiXqUK7n4AmpM4mbSxKDku0f8Q@mail.gmail.com>
2021-12-16 16:36   ` [PATCH 1/3] iio: as3935: " 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=20211209161730.396848-2-lars@metafoo.de \
    --to=lars@metafoo.de \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=mranostay@gmail.com \
    --cc=mtitinger@baylibre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.