OSDN Git Service

taskstats: remove unneeded dead assignment
[uclinux-h8/linux.git] / kernel / taskstats.c
index 2b4898b..bcac5a9 100644 (file)
@@ -113,13 +113,14 @@ static void send_cpu_listeners(struct sk_buff *skb,
        struct listener *s, *tmp;
        struct sk_buff *skb_next, *skb_cur = skb;
        void *reply = genlmsg_data(genlhdr);
-       int rc, delcount = 0;
+       int delcount = 0;
 
        genlmsg_end(skb, reply);
 
-       rc = 0;
        down_read(&listeners->sem);
        list_for_each_entry(s, &listeners->list, list) {
+               int rc;
+
                skb_next = NULL;
                if (!list_is_last(&s->list, &listeners->list)) {
                        skb_next = skb_clone(skb_cur, GFP_KERNEL);