mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
[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 <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
b08726bf2e
commit
88b3e311b5
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user