mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
ASoC: codecs: max98088: remove redundant ret variable
Return value from devm_snd_soc_register_component() directly instead of taking this in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn> Link: https://lore.kernel.org/r/20220829091319.266068-1-cui.jinpeng2@zte.com.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5b7f4e5de6
commit
e0550fffd5
@ -1749,7 +1749,6 @@ MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);
|
||||
static int max98088_i2c_probe(struct i2c_client *i2c)
|
||||
{
|
||||
struct max98088_priv *max98088;
|
||||
int ret;
|
||||
const struct i2c_device_id *id;
|
||||
|
||||
max98088 = devm_kzalloc(&i2c->dev, sizeof(struct max98088_priv),
|
||||
@ -1772,9 +1771,8 @@ static int max98088_i2c_probe(struct i2c_client *i2c)
|
||||
i2c_set_clientdata(i2c, max98088);
|
||||
max98088->pdata = i2c->dev.platform_data;
|
||||
|
||||
ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_max98088,
|
||||
return devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_max98088,
|
||||
&max98088_dai[0], 2);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
|
Loading…
Reference in New Issue
Block a user