lkml.org 
[lkml]   [2005]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.11-rc3-mm2] drivers/connector/connector.c: remove dead code
From
Date
This patch removes unreachable code in cn_netlink_send() function.

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@bull.net>

--- drivers/connector/connector.c.orig 2005-02-14 12:52:32.000000000 +0100
+++ drivers/connector/connector.c 2005-02-14 12:52:44.000000000 +0100
@@ -119,11 +119,6 @@ void cn_netlink_send(struct cn_msg *msg,
netlink_broadcast(dev->nls, skb, 0, groups, GFP_ATOMIC);

return;
-
- nlmsg_failure:
- printk(KERN_ERR "Failed to send %u.%u\n", msg->seq, msg->ack);
- kfree_skb(skb);
- return;
}

static int cn_call_callback(struct cn_msg *msg, void (*destruct_data) (void *), void *data)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.041 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site