Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1717877pxb; Wed, 9 Feb 2022 03:02:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEP+0tv6AEoipHQ6vgFDZgm3J+64K1YVUi6+KSOZ3s9MkZZm0Ib9YyxyRuTDhTcOL5C3WV X-Received: by 2002:a05:6a00:1253:: with SMTP id u19mr1688693pfi.8.1644404534179; Wed, 09 Feb 2022 03:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644404534; cv=none; d=google.com; s=arc-20160816; b=MQ/e3Vcl1QKd9uglNKgUX1C+c5taBHt3a61KM4Ty+8e1ZuiuhW8MqZzqbMl2Zd5wpI h5+/1SBJyAvBPgnf8qkS+7VRrr9oIuVV/mBX1F2pu5ftbdcdjQAcg1WKrmMG3iRp12oG Kg1NJGppNCzAWC3RpBnrdVMKjlYmwubE3K5St9x/VfqUcDfIHctUNIyhwaw4J4L93mJH aXxHBNjvYOIEiPr1ReWDPr9Rtn/UxBsVZ7947E3g1K8zCP8aF6nYH2peiU5Iq5h2ab6j ih111URbhkcznhSERp+roGAk94qCI+2du8qrPFLZH8U67FOf4dFeHcaTHNBWCBNUUw0t cAIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x2Il0JhrH5EsFOuJtqhIRhFIoWPTf3W77jR9wKs31rI=; b=KIbI8cvgRXaGlowElCORX3DnUGfL83zavTnF/fNInIvrYySs/qjKz0+t5jGn2c2nb/ GTyJoBpPXcVGdbfKDLDrbvYYpLJqv79YLFmCOC+PslYltR/vpb2nIZkmtDMBpgaU4QN0 aZD4bbyuv6XqV/h1R+po60bxyXsSHi2GhCKuzr5cWOd+lfZbmeH7Y3nPjIHabT51PQu3 MAGeqgmJ3IcuJ1VX6/cjrzO2G1cjcl3vC4GhrocG+j63R3Thct3IBNE5peqZEOLIZQVM gPxArPL9j4PZzV2L4j+Stfu+k16WXq2dzOvuDgi7RwZfaCDmXTm6hwXv/9ozm7u9QYyx Kveg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MIeHlyZM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n18si16869719plf.401.2022.02.09.03.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:02:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MIeHlyZM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40EEEC05CB9D; Wed, 9 Feb 2022 01:30:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345961AbiBIEJN (ORCPT + 99 others); Tue, 8 Feb 2022 23:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346402AbiBID1o (ORCPT ); Tue, 8 Feb 2022 22:27:44 -0500 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BEADC061576 for ; Tue, 8 Feb 2022 19:27:43 -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=1644377262; 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=x2Il0JhrH5EsFOuJtqhIRhFIoWPTf3W77jR9wKs31rI=; b=MIeHlyZMMutX70dqI+O6N/jG+BC92D2SkQNXDJlIW739n5beUj/tcgyAadqp9ZvWKgY8aP 8tSl4OFpUmeR69s9H84qSRY6fVpyNKAG83N3HBbOR6rYMKyffEllbw81HWjx0CHyRh1916 q5ekMfe8dl/bpBhb+yNNq0FGazgzV3M= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Greg Kroah-Hartman , Len Baker , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: most: video: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:27:13 +0800 Message-Id: <20220209032715.38437-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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/staging/most/video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index b7858e47145f..ffa97ef21ea5 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -52,7 +52,7 @@ struct comp_fh { u32 offs; }; -static struct list_head video_devices = LIST_HEAD_INIT(video_devices); +static LIST_HEAD(video_devices); static DEFINE_SPINLOCK(list_lock); static inline bool data_ready(struct most_video_dev *mdev) -- 2.25.1