From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Cheng Subject: [PATCH 15/20] net/lapb/lapb_iface.c: use LIST_HEAD instead of LIST_HEAD_INIT Date: Fri, 7 Dec 2007 00:07:18 +0800 Message-ID: <1196957239-5728-1-git-send-email-crquan@gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject:date:message-id:x-mailer; bh=az1xXqqj+XgHubPhi79/UF2o6kMFrh6KPT8Tp+rjbCE=; b=LpI+cPsGsAiHJdrtXKI9sywHyDxdvO3v+soqBIcc2Ls7Gu4KzAsdA22fsVf3+YJ3mAkVygXmUm3RJ0rHEgOnotI373jcZlZAr3ycFpksJYyb27REk/2CZoDvJh9URIAx2XbVBKjoO1TAsOfCMZ7kPi1zyjV2L5uLMDmmJqiKo3Y= Sender: linux-kernel-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-x25@vger.kernel.org Cc: Andrew Morton , linux-kernel@vger.kernel.org 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 --- net/lapb/lapb_iface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index a2e7aa6..2ba1bc4 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -39,7 +39,7 @@ #include #include -static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list); +static LIST_HEAD(lapb_list); static DEFINE_RWLOCK(lapb_list_lock); /* -- 1.5.3.4