From 88b3e311b52679a5c81af6bb0495d2c45049bb07 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Tue, 13 Sep 2016 11:25:42 -0300 Subject: [PATCH] [media] smiapp: Drop BUG_ON() in suspend path 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 Reviewed-by: Sebastian Reichel Signed-off-by: Mauro Carvalho Chehab --- drivers/media/i2c/smiapp/smiapp-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 8f9690e..1891c28 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -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; -- 2.7.4