From: Emil Goode Date: Sat, 18 Aug 2012 16:12:49 +0000 (+0200) Subject: tty: serial: max310x: Remove explicit use of devm_kfree X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fd7c81f864e3d8a2847fc0e36fde78b0da2fdf2c;p=linux-beck.git 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: Emil Goode Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 06ff5ad75636..2bc28a59d385 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1198,7 +1198,6 @@ err_freq: 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; }