提交 0ce75aa4 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown
上级 19c7ac27
......@@ -448,7 +448,7 @@ static __devinit int ak4642_i2c_probe(struct i2c_client *i2c,
int ret;
ak4642 = kzalloc(sizeof(struct ak4642_priv), GFP_KERNEL);
if (ak4642 == NULL)
if (!ak4642)
return -ENOMEM;
i2c_set_clientdata(i2c, ak4642);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册