Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1682687pxb; Wed, 9 Feb 2022 02:05:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzQgQQSgmwumk2g5RXlCVe91ndvJo769f3bO87Bk916vTsl8IOLA2yM92ZqT3XiT/5pAEo X-Received: by 2002:a63:565e:: with SMTP id g30mr1269020pgm.267.1644401100857; Wed, 09 Feb 2022 02:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401100; cv=none; d=google.com; s=arc-20160816; b=NddmzmxJUTLiuqvm/NMnPQeATsyYftWA/jkBTJt/OWNo/CbiG8XtQkqnZx1jFzJxGg P2JRAwkFvAVh2lmyKJSSNRmUeeelkqBxIfD12Qip5jHQ7YYVlefKPyAML/fSQXlZ+haX Mdrcft9h2n44XsdEKnsJBB5KgfDmJkmMDT/W6U7xjrLCN/ZouE/NES3D6nqoku/G+4/W 9VN5qrixHSd023yeyKFTgt1IPIrSkKBdew47lfLvIYZYGKOYVy8zNgIgBiuLm7tT3A7f 2buAKmL4O2VSmvwt2oe2LJZ3A9XJi5byNVdDm6lu0OV8mRZo9OfwyMf9lNS338At+9OS EsqQ== 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=lYo3QBxWEb3sYyyC7Y9NvFdCKKAa/0p/ymIbiLeV3GM=; b=IO/migzHxCEq9av5+09j2Nb+wgxeiyCQEPqTr4A9nrOzTEfYAN/Dg/X4sKqvXLa3yo qpQALP3gbd06n6qWpOEMHzMThvUUKTjwalHWA3kXP1sQHde5ONScm3U5inYYbWE+FAQD GIuPmp6I3cL0fc62zI2+JAWFHoMHBlEGLgohVAYSvlFF1N+vIDO6UP0hhnVcLjz5i5Ar 3GdzsT9NZF99Y9ENmyeNbExpYZsMmb/35Nqm278J6JnvqcJ3bOpguhyCXfULYuD64Xvl 8tVn9GIxEfl0BPtHIK06B+M1D6/af93vCEY6SoUc3FI+NFjg9MYUAUkiSuYcF8t7NAzZ +B1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CxvWoM55; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id x18si1576869plg.406.2022.02.09.02.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:05:00 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CxvWoM55; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 74086C0DE7DC; Wed, 9 Feb 2022 01:13:35 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344081AbiBIEIR (ORCPT + 99 others); Tue, 8 Feb 2022 23:08:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346430AbiBID2n (ORCPT ); Tue, 8 Feb 2022 22:28:43 -0500 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64E5DC061576; Tue, 8 Feb 2022 19:28:42 -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=1644377321; 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=lYo3QBxWEb3sYyyC7Y9NvFdCKKAa/0p/ymIbiLeV3GM=; b=CxvWoM55y35IoPBK2TZ3q/r3Fh5yCltzB9yW8/NO19GCZHVFtbTP6g46t3dIO7oV2kBUq1 P67jRa2ipAgZew930/4C1mU/8IQDpFZeCCFQfzTJh/cKbxz7tEhf4gv6xNo+BArZNpY6zF HOaXBlKteMCX9mjeOjce1WYiXSOxB4c= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Valentina Manea , Shuah Khan , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usbip: vudc: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:28:13 +0800 Message-Id: <20220209032813.38703-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/usb/usbip/vudc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/usbip/vudc_main.c b/drivers/usb/usbip/vudc_main.c index 678faa82598c..d43252b77efd 100644 --- a/drivers/usb/usbip/vudc_main.c +++ b/drivers/usb/usbip/vudc_main.c @@ -26,7 +26,7 @@ static struct platform_driver vudc_driver = { }, }; -static struct list_head vudc_devices = LIST_HEAD_INIT(vudc_devices); +static LIST_HEAD(vudc_devices); static int __init init(void) { -- 2.25.1