Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd7c81f8 authored by Emil Goode's avatar Emil Goode Committed by Greg Kroah-Hartman
Browse files

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: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 23e7c6a7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
}
@@ -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;
}