summaryrefslogtreecommitdiff
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-03-16 21:32:56 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-05-07 13:29:49 (GMT)
commit36ac2f32598fb4d1d4ab3b15fa63063b8e81a7ab (patch)
tree1db596a00d8902fecdeb0b4e720f22e129ad9940 /drivers/media/rc
parenta403ceeb6968b7e796c47331d10269cd9c8f7f7e (diff)
downloadlinux-36ac2f32598fb4d1d4ab3b15fa63063b8e81a7ab.tar.xz
[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 <hkallweit1@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/rc-main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 4e9bbe7..68541b1 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -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,