Commit fd7c81f8 authored by Emil Goode's avatar Emil Goode Committed by 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: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment