]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/mmp/core.c: delete a stray mutex_unlock()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Dec 2013 23:44:52 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:52 +0000 (10:44 +1100)
We aren't holding the disp_lock so we shouldn't release it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Andrei Epure <epure.andrei@gmail.com>
Cc: Lisa Du <cldu@marvell.com>
Cc: Zhou Zhu <zzhu3@marvell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/mmp/core.c

index 84de2632857a335086b829597392e2a7e456cc54..c8d426541612c0f4c74f553566892b0374c2bf56 100644 (file)
@@ -173,7 +173,7 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
                + sizeof(struct mmp_overlay) * info->overlay_num;
        path = kzalloc(size, GFP_KERNEL);
        if (!path)
-               goto failed;
+               return NULL;
 
        /* path set */
        mutex_init(&path->access_ok);
@@ -219,11 +219,6 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
 
        mutex_unlock(&disp_lock);
        return path;
-
-failed:
-       kfree(path);
-       mutex_unlock(&disp_lock);
-       return NULL;
 }
 EXPORT_SYMBOL_GPL(mmp_register_path);