Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754137AbXLETZ7 (ORCPT ); Wed, 5 Dec 2007 14:25:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752104AbXLETZk (ORCPT ); Wed, 5 Dec 2007 14:25:40 -0500 Received: from rv-out-0910.google.com ([209.85.198.191]:23196 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbXLETZj (ORCPT ); Wed, 5 Dec 2007 14:25:39 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:from:to:cc:subject:date:message-id:x-mailer; b=AJdeMHCIa7bywWxhCLCdOjqm0JKkhUCgHbQ+GLuiGOnXrx+oPQKLuF9ZVBk3cK9T/R4uUkB3OEqWt0pNGJHyb8A+0pcTcZO/D6IQ0NwtmdrNJASvvfjifPGmwd//3M07hxJzIJrJE5NbEV7nDmH6iz+1xDVLbQxPxf24uB4ribY= From: Denis Cheng To: "David S. Miller" Cc: linux-kernel@vger.kernel.org Subject: [PATCH 08/20] drivers/net/wan/lapbether.c: use LIST_HEAD instead of LIST_HEAD_INIT Date: Thu, 6 Dec 2007 03:23:53 +0800 Message-Id: <1196882633-18880-1-git-send-email-crquan@gmail.com> X-Mailer: git-send-email 1.5.3.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 30 single list_head variable initialized with LIST_HEAD_INIT could almost always can be replaced with LIST_HEAD declaration, this shrinks the code and looks better. Signed-off-by: Denis Cheng --- drivers/net/wan/lapbether.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index fb37b80..824df3b 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -58,7 +58,7 @@ struct lapbethdev { struct net_device_stats stats; /* some statistics */ }; -static struct list_head lapbeth_devices = LIST_HEAD_INIT(lapbeth_devices); +static LIST_HEAD(lapbeth_devices); /* ------------------------------------------------------------------------ */ -- 1.5.3.4 -- 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/