mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[media] media: rc: remove unneeded mutex in rc_register_device
Access to dev->initialized is atomic and dev->initialized isn't accessed in any other code protected by this mutex. Therefore we don't need to get the mutex here. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
a403ceeb69
commit
36ac2f3259
1 changed files with 0 additions and 2 deletions
|
|
@ -1492,9 +1492,7 @@ int rc_register_device(struct rc_dev *dev)
|
|||
}
|
||||
|
||||
/* Allow the RC sysfs nodes to be accessible */
|
||||
mutex_lock(&dev->lock);
|
||||
atomic_set(&dev->initialized, 1);
|
||||
mutex_unlock(&dev->lock);
|
||||
|
||||
IR_dprintk(1, "Registered rc%u (driver: %s, remote: %s, mode %s)\n",
|
||||
dev->minor,
|
||||
|
|
|
|||
Loading…
Reference in a new issue