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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A0C6C433F5 for ; Wed, 9 Feb 2022 03:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wlaCRJuyzdUTHv6PtZrsqS3Tsg1RsMsliT3sr5JU6Es=; b=CAEWNd+4hFkSkr jUusOfgCKrsD4wrTZGPzMAcxMpZqP7NJZrAEmjFmtpWVxjUGQWsYbUxD5qoieZFlcf069Hsj29Y7i Dvuoms5F2ZoWIQDzDWppqGCGtAa6DQqo/usHROXDWeIs7okSGJbvoyB3dfctHzZZoAwpE2r0iogvj g2Yb5M462I+2dVJI4FYEAQ2AT48SQl+DxkIha6TgrKBqkJg72H34RxdqWRjrVKXuNRnkiGSpR+cdv IsHZ1x47aFAKUNfYGNJ5qe2Gfg7L5Qq3nou4XY6hu2ojJ4N5XQOo/AlKcTWaOjOBN99g2Jm/eaW9O PcGGr4le0mAwFwFzdjog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHdar-00G6Hf-Ks; Wed, 09 Feb 2022 03:24:33 +0000 Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHdan-00G6H7-J8 for linux-arm-kernel@lists.infradead.org; Wed, 09 Feb 2022 03:24:31 +0000 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=1644377060; 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=eoWIYOaZeRs/v2aMKLkHveIxx9A2/s6u9pylLwYovIg=; b=OmnJp9CNrdZk/a9TzXx8vCi8716xgp/uNAup98z+s4zNeI6MSCvu3i6HL/4WElm+e0D2Cs GKun9bntMjXpsUwydOlhlkJPAT8GMeUm394ER6vCl6/8h1rRh1Xfb+ksKxPtY9Fp8LCAaM wTIe6JNRDNrjO16WhE7TX3WtHzvXTsU= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Roy Pledge , Li Yang , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] oc: fsl: dpio: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:23:53 +0800 Message-Id: <20220209032353.37610-1-cai.huoqing@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220208_192429_972603_1056F44B X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing --- drivers/soc/fsl/dpio/dpio-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c index 1d2b27e3ea63..36f0a9b799b1 100644 --- a/drivers/soc/fsl/dpio/dpio-service.c +++ b/drivers/soc/fsl/dpio/dpio-service.c @@ -51,7 +51,7 @@ struct dpaa2_io_store { /* keep a per cpu array of DPIOs for fast access */ static struct dpaa2_io *dpio_by_cpu[NR_CPUS]; -static struct list_head dpio_list = LIST_HEAD_INIT(dpio_list); +static LIST_HEAD(dpio_list); static DEFINE_SPINLOCK(dpio_list_lock); static inline struct dpaa2_io *service_select_by_cpu(struct dpaa2_io *d, -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel