提交 fd7c81f8 编写于 作者: E Emil Goode 提交者: Greg Kroah-Hartman

tty: serial: max310x: Remove explicit use of devm_kfree

There is no reason to explicitly call devm_kfree
in probe or remove functions.
Signed-off-by: NEmil Goode <emilgoode@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 23e7c6a7
......@@ -1198,7 +1198,6 @@ static int __devinit max310x_probe(struct spi_device *spi)
err_out:
dev_set_drvdata(dev, NULL);
devm_kfree(dev, s);
return ret;
}
......@@ -1234,8 +1233,6 @@ static int __devexit max310x_remove(struct spi_device *spi)
if (s->pdata->exit)
s->pdata->exit();
devm_kfree(dev, s);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册