Commit 0ce75aa4 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
parent 19c7ac27
...@@ -448,7 +448,7 @@ static __devinit int ak4642_i2c_probe(struct i2c_client *i2c, ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment