]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] smiapp: Drop BUG_ON() in suspend path
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 13 Sep 2016 14:25:42 +0000 (11:25 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 17:24:49 +0000 (15:24 -0200)
Checking that the mutex is not acquired is unnecessary for user processes
are stopped by this point. Drop the check.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-core.c

index 8f9690e375bff9f06f992d979981af2f38db369e..1891c28ca6a461f676b57815a45d23f06b126fcf 100644 (file)
@@ -2709,8 +2709,6 @@ static int smiapp_suspend(struct device *dev)
        struct smiapp_sensor *sensor = to_smiapp_sensor(subdev);
        bool streaming;
 
-       BUG_ON(mutex_is_locked(&sensor->mutex));
-
        if (sensor->power_count == 0)
                return 0;