From: Ladislav Michl <ladis@linux-mips.org>
To: alsa-devel@alsa-project.org
Cc: Mark Brown <broonie@kernel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
anish kumar <yesanishhere@gmail.com>
Subject: [PATCH 1/5] ASoC: max9867: Remove useless assignment
Date: Tue, 4 Dec 2018 19:18:17 +0100 [thread overview]
Message-ID: <20181204181817.GB1136@lenoch> (raw)
In-Reply-To: <20181204181725.GA1136@lenoch>
ret is assigned later, no need to initialize it.
---
sound/soc/codecs/max9867.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 1cda54b59854..1b155f40b106 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -476,7 +476,7 @@ static int max9867_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
struct max9867_priv *max9867;
- int ret = 0, reg;
+ int ret, reg;
max9867 = devm_kzalloc(&i2c->dev, sizeof(*max9867), GFP_KERNEL);
if (!max9867)
@@ -497,10 +497,8 @@ static int max9867_i2c_probe(struct i2c_client *i2c,
dev_info(&i2c->dev, "device revision: %x\n", reg);
ret = devm_snd_soc_register_component(&i2c->dev, &max9867_component,
max9867_dai, ARRAY_SIZE(max9867_dai));
- if (ret < 0) {
+ if (ret < 0)
dev_err(&i2c->dev, "Failed to register component: %d\n", ret);
- return ret;
- }
return ret;
}
--
2.20.0.rc2
next prev parent reply other threads:[~2018-12-04 18:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 18:17 [PATCH v2 0/5] max9867 driver update Ladislav Michl
2018-12-04 18:18 ` Ladislav Michl [this message]
2018-12-06 20:25 ` Applied "ASoC: max9867: Remove useless assignment" to the asoc tree Mark Brown
2018-12-04 18:19 ` [PATCH v2 2/5] ASoC: max9867: Fix power management Ladislav Michl
2018-12-06 20:25 ` Applied "ASoC: max9867: Fix power management" to the asoc tree Mark Brown
2018-12-07 12:23 ` Mark Brown
2018-12-04 18:21 ` [PATCH RESEND 3/5] ASoC: max9867: Calculate LRCLK divider Ladislav Michl
2018-12-04 18:21 ` [PATCH RESEND 4/5] ASoC: max9867: Fix signal paths Ladislav Michl
2018-12-04 18:22 ` [PATCH RESEND 5/5] ASoC: max9867: Add copyright and module author Ladislav Michl
2018-12-06 20:10 ` Mark Brown
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=20181204181817.GB1136@lenoch \
--to=ladis@linux-mips.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=yesanishhere@gmail.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.