summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorEmil Goode <emilgoode@gmail.com>2012-08-18 18:12:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 21:33:40 +0200
commitfd7c81f864e3d8a2847fc0e36fde78b0da2fdf2c (patch)
tree4326bea291a35752cf6a0a25710a205ddaf89d77 /drivers/tty
parenttty: serial: max310x: Check return code of gpiochip_remove (diff)
downloadlinux-fd7c81f864e3d8a2847fc0e36fde78b0da2fdf2c.tar.xz
linux-fd7c81f864e3d8a2847fc0e36fde78b0da2fdf2c.zip
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 <emilgoode@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/max310x.c3
1 files changed, 0 insertions, 3 deletions
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;
}