Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261415AbVBNMB5 (ORCPT ); Mon, 14 Feb 2005 07:01:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261416AbVBNMB5 (ORCPT ); Mon, 14 Feb 2005 07:01:57 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:52917 "EHLO ecfrec.frec.bull.fr") by vger.kernel.org with ESMTP id S261415AbVBNMBz (ORCPT ); Mon, 14 Feb 2005 07:01:55 -0500 Subject: [PATCH 2.6.11-rc3-mm2] drivers/connector/connector.c: remove dead code From: Guillaume Thouvenin To: Andrew Morton Cc: johnpol@2ka.mipt.ru, lkml Date: Mon, 14 Feb 2005 13:01:52 +0100 Message-Id: <1108382512.16745.36.camel@frecb000711.frec.bull.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 X-MIMETrack: Itemize by SMTP Server on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 14/02/2005 13:10:36, Serialize by Router on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 14/02/2005 13:10:38, Serialize complete at 14/02/2005 13:10:38 Content-Transfer-Encoding: 7bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 874 Lines: 25 This patch removes unreachable code in cn_netlink_send() function. Signed-off-by: Guillaume Thouvenin --- 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/