Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp355586pxk; Thu, 24 Sep 2020 07:16:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/WMwz5r04HGhjlb/uDtnXJNV7Z55r8XL7d13Krn4ktPWw/GbZa9PnMtsuwUdVJhkaNnuY X-Received: by 2002:a17:907:119d:: with SMTP id uz29mr81348ejb.289.1600957012136; Thu, 24 Sep 2020 07:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600957012; cv=none; d=google.com; s=arc-20160816; b=nMTzjOYzy59alRFWr99j/ZO1f29NenP8kqvEzYVac9Fn16gCseiXeFiSv5PP27PAi4 hNbXLKhwDCw4Wn+XpuTjyl72os8iNWnpDSDt7cAX2UsZebgggjaYXam+aBWpt/n6ZMfm 7ZcK6DK6CS2+zLF2CEoZduejwIhDlnR8oXdtHEgZCk4PVImbCr2QG/4ezG4a0dDr4Zqi b8rZdjczDuez/KpUNDo5jIHNvjxM+C4jhBHBuFyCbCy4VHV1Xu1OgR7Z9gqXXNBcu4L4 Hi2Iv6afssD51xelZpnsormKMZoKaek0Qjizt4JNgEPJgqgGPBwimamKaVrEsp4yFCFC /Opw== 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; bh=s+4IlmLHXOVBE1IQUcrUHJ1tf//9yFSZl1V99mSuA8w=; b=qD7KpYbgQtr3lDdX/jP0upLdFgMX6vAV3se4EJV6azLCvwl4mr4JQO11RDoDYolRv2 /2kRguMrwrUuMqtQUOoGVDZWgCQeZCAmfj05GGd4tsqetyOLcXdy2Wj+AE3MLFN5E9GO 5BEcrhF0MOawZjM5UlxwfFSM23opa4sbKHkKmMugikGCi+u2sKL1NYj+5gFYSFEqwChh 7l9aZl5G1MSH3pJYVu9X8ujxNEzeNT5PN6PLDSc8MFP/89+hgKCeaibgx2DMRtwM/mC3 ot2x4Jxx0Bdq+qw/SfalsjsD/x4AQHLH3XQPZF0UdRDSuLC+bitog0YNBGAM771Ej5hd xJdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si1900869ejv.525.2020.09.24.07.16.28; Thu, 24 Sep 2020 07:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbgIXOMx (ORCPT + 99 others); Thu, 24 Sep 2020 10:12:53 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14228 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727982AbgIXOMx (ORCPT ); Thu, 24 Sep 2020 10:12:53 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 86A2948D9CD1426027F9; Thu, 24 Sep 2020 22:12:50 +0800 (CST) Received: from huawei.com (10.175.104.57) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Thu, 24 Sep 2020 22:12:47 +0800 From: Li Heng To: , CC: , , Subject: [PATCH -next] usb: typec: Remove set but not used variable Date: Thu, 24 Sep 2020 22:12:47 +0800 Message-ID: <1600956767-10427-1-git-send-email-liheng40@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.104.57] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/usb/typec/tcpm/tcpm.c:1620:39: warning: ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=] Reported-by: Hulk Robot Signed-off-by: Li Heng --- drivers/usb/typec/tcpm/tcpm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c index 9280654..1542eaa 100644 --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -1617,12 +1617,6 @@ static int tcpm_altmode_vdm(struct typec_altmode *altmode, return 0; } -static const struct typec_altmode_ops tcpm_altmode_ops = { - .enter = tcpm_altmode_enter, - .exit = tcpm_altmode_exit, - .vdm = tcpm_altmode_vdm, -}; - /* * PD (data, control) command handling functions */ -- 2.7.4