From patchwork Wed Feb 9 03:26:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cai Huoqing X-Patchwork-Id: 12739592 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 C8097C433EF for ; Wed, 9 Feb 2022 04:07:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345370AbiBIEHq (ORCPT ); Tue, 8 Feb 2022 23:07:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbiBID0s (ORCPT ); Tue, 8 Feb 2022 22:26:48 -0500 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E3C7C061576; Tue, 8 Feb 2022 19:26:45 -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=1644377202; 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=VaP94/CLC7el0s9X3gi0V2qhxQn89+l7bMyYQ/NhPts=; b=sh5lNebjUT9t3zkDF0H4ToUqhauNJkuTi3187kEifAla4nM2lkUWtloIdPxAYu0s0lKZXl fOfD6NcYeMqwGDL3wfjjuTBOT/qy2WNV71Kj2AEuGIruakbaOBwzWIcKTMxEQsXuRoVYyL RqCyyrGnxrI/r0PgmeOre7TxQAUgdIU= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: qla2xxx: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:26:14 +0800 Message-Id: <20220209032614.38190-1-cai.huoqing@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing --- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index cff5e4a710d1..63e5858b4038 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -6376,7 +6376,7 @@ qla24xx_free_purex_item(struct purex_item *item) void qla24xx_process_purex_list(struct purex_list *list) { - struct list_head head = LIST_HEAD_INIT(head); + LIST_HEAD(head); struct purex_item *item, *next; ulong flags;