aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/joydev.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-05-11 15:38:10 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-05-12 08:28:57 -0700
commit7cbbb758d3c93b24b45b169af55440d2e7d5b7f6 (patch)
tree2eda8bad7a0f92c67b2255e9076e892309e85011 /drivers/input/joydev.c
parentInput: ads7846 - fix gpio_pendown configuration (diff)
downloadlinux-dev-7cbbb758d3c93b24b45b169af55440d2e7d5b7f6.tar.xz
linux-dev-7cbbb758d3c93b24b45b169af55440d2e7d5b7f6.zip
Input: remove useless synchronize_rcu() calls
There is no need to call synchronize_rcu() after a list insertion, or a NULL->ptr assignment. However, the reverse operations do need this call. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joydev.c')
-rw-r--r--drivers/input/joydev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
index 5688b5c88f24..c24ec2d5f926 100644
--- a/drivers/input/joydev.c
+++ b/drivers/input/joydev.c
@@ -180,7 +180,6 @@ static void joydev_attach_client(struct joydev *joydev,
spin_lock(&joydev->client_lock);
list_add_tail_rcu(&client->node, &joydev->client_list);
spin_unlock(&joydev->client_lock);
- synchronize_rcu();
}
static void joydev_detach_client(struct joydev *joydev,