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

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

mei: mei_release: drop redundant check if cb is NULL



mei_io_cb_free follows kfree design and check for NULL internally

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd5de1f1
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -165,10 +165,7 @@ static int mei_release(struct inode *inode, struct file *file)

	file->private_data = NULL;

	if (cb) {
	mei_io_cb_free(cb);
		cb = NULL;
	}

	kfree(cl);
out: