Browse Source

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>
Emil Goode 13 years ago
parent
commit
fd7c81f864
1 changed files with 0 additions and 3 deletions
  1. 0 3
      drivers/tty/serial/max310x.c

+ 0 - 3
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;
 }