netlink: Make use of __assign_bit() API
[linux-2.6-microblaze.git] / net / netlink / af_netlink.c
index 3836318..9c9df14 100644 (file)
@@ -1629,10 +1629,7 @@ static void netlink_update_socket_mc(struct netlink_sock *nlk,
 
        old = test_bit(group - 1, nlk->groups);
        subscriptions = nlk->subscriptions - old + new;
-       if (new)
-               __set_bit(group - 1, nlk->groups);
-       else
-               __clear_bit(group - 1, nlk->groups);
+       __assign_bit(group - 1, nlk->groups, new);
        netlink_update_subscriptions(&nlk->sk, subscriptions);
        netlink_update_listeners(&nlk->sk);
 }