From patchwork Thu Mar 23 05:42:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingxuan Xiang X-Patchwork-Id: 666891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DC2CC6FD1D for ; Thu, 23 Mar 2023 05:44:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbjCWFoB (ORCPT ); Thu, 23 Mar 2023 01:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbjCWFn7 (ORCPT ); Thu, 23 Mar 2023 01:43:59 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56AF230E1; Wed, 22 Mar 2023 22:43:58 -0700 (PDT) Received: from localhost.localdomain ([172.16.0.254]) (user=mx_xiang@hust.edu.cn mech=LOGIN bits=0) by mx1.hust.edu.cn with ESMTP id 32N5gXaO025806-32N5gXaP025806 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Mar 2023 13:42:46 +0800 From: Mingxuan Xiang To: Thinh Nguyen , Greg Kroah-Hartman Cc: hust-os-kernel-patches@googlegroups.com, Dongliang Mu , Mingxuan Xiang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: dwc3: host: remove dead code in dwc3_host_get_irq() Date: Thu, 23 Mar 2023 13:42:32 +0800 Message-Id: <20230323054232.1135734-1-mx_xiang@hust.edu.cn> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-FEAS-AUTH-USER: mx_xiang@hust.edu.cn Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org platform_get_irq() no longer returns 0, so there is no need to check whether the return value is 0. Signed-off-by: Mingxuan Xiang --- drivers/usb/dwc3/host.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index f6f13e7f1ba1..aa19c27344e6 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -57,9 +57,6 @@ static int dwc3_host_get_irq(struct dwc3 *dwc) goto out; } - if (!irq) - irq = -EINVAL; - out: return irq; }