projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e7c6a
)
tty: serial: max310x: Remove explicit use of devm_kfree
author
Emil Goode
<emilgoode@gmail.com>
Sat, 18 Aug 2012 16:12:49 +0000
(18:12 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 19:33:40 +0000
(12:33 -0700)
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>
drivers/tty/serial/max310x.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/max310x.c
b/drivers/tty/serial/max310x.c
index
06ff5ad
..
2bc28a5
100644
(file)
--- 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;
}