From nobody Sun Jun 28 10:34:17 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55F79C433EF for ; Wed, 9 Feb 2022 04:08:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346484AbiBIEIi (ORCPT ); Tue, 8 Feb 2022 23:08:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346335AbiBIDZU (ORCPT ); Tue, 8 Feb 2022 22:25:20 -0500 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90527C061576 for ; Tue, 8 Feb 2022 19:25:19 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1644377117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7zovqOcffeRe0mWCd/L89g+VpaojJDUdL7RhfRPn1rY=; b=TGawKcWR2FnR+bJKSghmE0pWFxvZFt2TYQ2bO5wk4LybtksVoRlpLJHA3UKHXcSGeihTJR oOfR/A4EBvXSZBuwhs8sY4sVRcDKqFSHjSsnW6UgScN2u/eFp83T2j/vPaWSDax3uimWet zJAcYKHJuQixdY8OAEZW0jm4aLWuqyw= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/BSR: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:24:50 +0800 Message-Id: <20220209032450.37849-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Replace "struct list_head head =3D LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing --- drivers/char/bsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index cce2af5df7b4..d5f943938427 100644 --- a/drivers/char/bsr.c +++ b/drivers/char/bsr.c @@ -60,7 +60,7 @@ struct bsr_dev { }; =20 static unsigned total_bsr_devs; -static struct list_head bsr_devs =3D LIST_HEAD_INIT(bsr_devs); +static LIST_HEAD(bsr_devs); static struct class *bsr_class; static int bsr_major; =20 --=20 2.25.1