From patchwork Thu Feb 4 01:24:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "yebin (H)" X-Patchwork-Id: 12065941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 117BFC433E6 for ; Thu, 4 Feb 2021 01:20:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C76CE64E2A for ; Thu, 4 Feb 2021 01:20:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234441AbhBDBTe (ORCPT ); Wed, 3 Feb 2021 20:19:34 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:12390 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234429AbhBDBTa (ORCPT ); Wed, 3 Feb 2021 20:19:30 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DWLJ36j1Pz7gTD; Thu, 4 Feb 2021 09:17:23 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 09:18:32 +0800 From: Ye Bin To: , , , CC: Ye Bin , Hulk Robot Subject: [PATCH] =?utf-8?q?usb=3A_typec=3A_remove_unused_variable_=E2=80=98r?= =?utf-8?q?et=E2=80=99_in_typec=5Fpartner=5Fset=5Fpd=5Frevision?= Date: Thu, 4 Feb 2021 09:24:30 +0800 Message-ID: <20210204012430.3686636-1-yebin10@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fix follow warning: drivers/usb/typec/class.c:763:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Reported-by: Hulk Robot Signed-off-by: Ye Bin --- drivers/usb/typec/class.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/typec/class.c b/drivers/usb/typec/class.c index b6ceab3dc16b..1c2d50e016e2 100644 --- a/drivers/usb/typec/class.c +++ b/drivers/usb/typec/class.c @@ -760,8 +760,6 @@ EXPORT_SYMBOL_GPL(typec_partner_set_identity); */ int typec_partner_set_pd_revision(struct typec_partner *partner, u16 pd_revision) { - int ret; - if (partner->pd_revision == pd_revision) return 0;