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

Commit 77b007b1 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

mei: amthif: drop parameter validation from mei_amthif_write



Remove duplicated parameter validation from mei_amthif_write functions,
The parameter check is already performed by the caller function
mei_write

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9abd8b31
Loading
Loading
Loading
Loading
+1 −9
Original line number Original line Diff line number Diff line
@@ -285,15 +285,7 @@ int mei_amthif_run_next_cmd(struct mei_device *dev)
int mei_amthif_write(struct mei_cl *cl, struct mei_cl_cb *cb)
int mei_amthif_write(struct mei_cl *cl, struct mei_cl_cb *cb)
{
{


	struct mei_device *dev;
	struct mei_device *dev = cl->dev;

	if (WARN_ON(!cl || !cl->dev))
		return -ENODEV;

	if (WARN_ON(!cb))
		return -EINVAL;

	dev = cl->dev;


	list_add_tail(&cb->list, &dev->amthif_cmd_list.list);
	list_add_tail(&cb->list, &dev->amthif_cmd_list.list);