Skip to content

Commit 9aa499f

Browse files
Chen Nibroonie
authored andcommitted
ASoC: tlv320adc3xxx: remove unnecessary NULL check before clk_disable_unprepare()
clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL. Remove unneeded NULL check for adc3xxx->mclk here. Signed-off-by: Chen Ni <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f1d742c commit 9aa499f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/codecs/tlv320adc3xxx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,8 +1493,7 @@ static void adc3xxx_i2c_remove(struct i2c_client *client)
14931493
{
14941494
struct adc3xxx *adc3xxx = i2c_get_clientdata(client);
14951495

1496-
if (adc3xxx->mclk)
1497-
clk_disable_unprepare(adc3xxx->mclk);
1496+
clk_disable_unprepare(adc3xxx->mclk);
14981497
adc3xxx_free_gpio(adc3xxx);
14991498
snd_soc_unregister_component(&client->dev);
15001499
}

0 commit comments

Comments
 (0)