Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1195565pxf; Fri, 9 Apr 2021 02:24:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXDOFaCpW4SPlsVykGRSFSigejbAG/16J6UnowK/HAcnUSKtwnUr3okCsuujfmboVvCmsu X-Received: by 2002:a17:906:4347:: with SMTP id z7mr13685162ejm.246.1617960247527; Fri, 09 Apr 2021 02:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617960247; cv=none; d=google.com; s=arc-20160816; b=OWs3ISd+SaUU7X2Igo6W2wtl+eKuXflGGO6THg2QBpRpF04nLs9+G1qkp60u3hT7mo TYybM7uTJCe+4FM70NpCDkgOW6Z9DZ08MvU4YUvshZsuvJ+yHc3qoKd24v3NMNTKrThN LliOOLHwupDPIHxSahatq48kwA0FawmzYj3L4qJyLK+Ebt8fyopLHxA08TZmpOREr1Qo RPkYErEpq1BaZ+psTKtxIJ1hhB7QqOOuF5lymN0xWuLNXG4s5aVkBPtnGt8sza1kW0hY wmkJUNy3h8o7f6jJyfm0E5lM14LYcC9VawkzM9KxyTtVAEMu5uwMYFKsHnNOpYnwWxgz yNug== 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=1XevoLPHVGTH6hZhLpsJ6MbQbC8gr3dI2SNqA1bhYgk=; b=xULrCMvrXtcgLzKTJ52tWihYmwiGdmuVfPszKBXFwJn4/q4dconOCsTsC63SxhdMGN iTgu6GGybqLwKeZsbpLXIZrQjQNImdwdUZ5CckXSL/Tv+S559wpgDPW4ErweQ4pxZrLv q54+Pwy17WTetkTU/SufdccLZirnMFB4lNI2Vqu7D0moin3M+J5xznOwpzZhjfprBi/A O7eLR+AV5ucJICSnbIg4wIEI6qWjsQpG0QD2N8UDhcGlTZ+gfK5d2gjpz10BTMZ0dp2j 5Dxhj/iA7+ZEOYWSHJsENRv98QlGLlBZtxdnkXFfy42qUepEchuJ9+6LUQIj1Pnk7QOF l7Vw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca23si1909923edb.92.2021.04.09.02.23.44; Fri, 09 Apr 2021 02:24:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232071AbhDIJWh (ORCPT + 99 others); Fri, 9 Apr 2021 05:22:37 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:44285 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbhDIJWg (ORCPT ); Fri, 9 Apr 2021 05:22:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UUzGglv_1617960137; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUzGglv_1617960137) by smtp.aliyun-inc.com(127.0.0.1); Fri, 09 Apr 2021 17:22:22 +0800 From: Jiapeng Chong To: linux@roeck-us.net Cc: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] usb: typec: tcpm: remove useless variable Date: Fri, 9 Apr 2021 17:22:16 +0800 Message-Id: <1617960136-95131-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/usb/typec/tcpm/tcpm.c:2107:39: warning: ‘tcpm_altmode_ops’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 ce7af39..4585785 100644 --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -2104,12 +2104,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 */ -- 1.8.3.1