提交 88b3e311 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[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: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NSebastian Reichel <sre@kernel.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 b08726bf
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册