From patchwork Tue Nov 11 12:07:40 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 8109 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 16A32DDDE3 for ; Tue, 11 Nov 2008 23:04:36 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755495AbYKKMER (ORCPT ); Tue, 11 Nov 2008 07:04:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755404AbYKKMEQ (ORCPT ); Tue, 11 Nov 2008 07:04:16 -0500 Received: from ug-out-1314.google.com ([66.249.92.170]:53637 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755455AbYKKMEQ (ORCPT ); Tue, 11 Nov 2008 07:04:16 -0500 Received: by ug-out-1314.google.com with SMTP id 39so710177ugf.37 for ; Tue, 11 Nov 2008 04:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=ZJoYCFzFCfI4t9OnCyc8n8gii9cMz/yBh4kxqc00wkA=; b=sVJOBcYf3OXZNkb/2GbA0ajjrr+QHyoVm4f1viMfTAbYztHpZP6PRcbezv/CjCdXHX EFUQiXYy2Kq0FoJHdPdIpDCjg4CXcdNVSdC5wGThupUo7rGCyUAJ1Co4RMD7y3jEQKST Sr5BPjHiRvJ5Jwdew4Kq+CBloJhp97rP+A1ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Q1B8GSlxT8naNzPXJhv2D+NEHnJMModqgaxM6ZJZESz38tnPehCaykVj2tilk3zy3L 6a3qhmBv9QtZOtELDUL34aJ0cS08cT6+83WzMCE7gZSK2M1d34UhMqhq84BMnXXflnJf Y5gzeRaRFLrk/2Msi2ohvL+8QmQwaW2fVQmOQ= Received: by 10.67.30.4 with SMTP id h4mr2833701ugj.28.1226405054438; Tue, 11 Nov 2008 04:04:14 -0800 (PST) Received: from localhost (gw.zunet.ru [217.67.117.64]) by mx.google.com with ESMTPS id e5sm4929673ugf.58.2008.11.11.04.04.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Nov 2008 04:04:13 -0800 (PST) Date: Tue, 11 Nov 2008 15:07:40 +0300 From: Alexey Dobriyan To: davem@davemloft.net Cc: netdev@vger.kernel.org Subject: [PATCH] net: remove struct neigh_table::pde Message-ID: <20081111120740.GC30773@x200.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org ->pde isn't actually needed, since name is stashed in ->id. Signed-off-by: Alexey Dobriyan --- include/net/neighbour.h | 3 --- net/core/neighbour.c | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -180,9 +180,6 @@ struct neigh_table __u32 hash_rnd; unsigned int hash_chain_gc; struct pneigh_entry **phash_buckets; -#ifdef CONFIG_PROC_FS - struct proc_dir_entry *pde; -#endif }; /* flags for neigh_update() */ --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1424,9 +1424,8 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl) panic("cannot create neighbour cache statistics"); #ifdef CONFIG_PROC_FS - tbl->pde = proc_create_data(tbl->id, 0, init_net.proc_net_stat, - &neigh_stat_seq_fops, tbl); - if (!tbl->pde) + if (!proc_create_data(tbl->id, 0, init_net.proc_net_stat, + &neigh_stat_seq_fops, tbl)) panic("cannot create neighbour proc dir entry"); #endif