summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-09-15 18:11:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 08:39:27 -0700
commita9c8a17aea8ced19598b388db618e9094f3c1245 (patch)
tree18d34045e481538f316d08d4e84f1358b90e95e4 /drivers
parentdd5de1f165ade430357960459491a067c7e3d21c (diff)
downloadop-kernel-dev-a9c8a17aea8ced19598b388db618e9094f3c1245.zip
op-kernel-dev-a9c8a17aea8ced19598b388db618e9094f3c1245.tar.gz
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 <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/mei/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 7404584..9aa3b780 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:
OpenPOWER on IntegriCloud