ASoC: ak4642: code clean up
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
committed by
Mark Brown
parent
19c7ac27a1
commit
0ce75aa4fe
@@ -448,7 +448,7 @@ static __devinit int ak4642_i2c_probe(struct i2c_client *i2c,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ak4642 = kzalloc(sizeof(struct ak4642_priv), GFP_KERNEL);
|
ak4642 = kzalloc(sizeof(struct ak4642_priv), GFP_KERNEL);
|
||||||
if (ak4642 == NULL)
|
if (!ak4642)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
i2c_set_clientdata(i2c, ak4642);
|
i2c_set_clientdata(i2c, ak4642);
|
||||||
|
Reference in New Issue
Block a user