Skip to content

Commit

Permalink
tty: serial: max310x: Remove explicit use of devm_kfree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emil Goode authored and Greg Kroah-Hartman committed Sep 5, 2012
1 parent 23e7c6a commit fd7c81f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/serial/max310x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit fd7c81f

Please sign in to comment.