From: Tomas Winkler Date: Sun, 15 Sep 2013 15:11:06 +0000 (+0300) Subject: mei: mei_release: drop redundant check if cb is NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9c8a17aea8ced19598b388db618e9094f3c1245;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 7404584e65e1..9aa3b78067d3 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c @@ -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; - } + mei_io_cb_free(cb); kfree(cl); out: