mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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>
This commit is contained in:
parent
dd5de1f165
commit
a9c8a17aea
1 changed files with 1 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue