Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7383738rwl; Thu, 23 Mar 2023 03:41:51 -0700 (PDT) X-Google-Smtp-Source: AK7set+nlFF6dRv6oUPCS7bk/yCgPu9sw/vly4/oMtFwMGzsBtkPsPN2sWZ5zARniJZ2AtAruRRe X-Received: by 2002:a05:6402:488:b0:4fb:de7d:b05a with SMTP id k8-20020a056402048800b004fbde7db05amr8219743edv.40.1679568111584; Thu, 23 Mar 2023 03:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679568111; cv=none; d=google.com; s=arc-20160816; b=oX7YAm1YcflGBirUmtO77NWbPAEaQy7jTZHKYqMci/Symj15mcDsq7hVinOBZrHiLi HQjT/CU31Rq1W9wYlEffF6rh8WiAfBm5VFFU+H3+444bsqFGltA4POL3Rgosh6u/Tq8W UgGq7XOpJeFSiB4L8y+9cXcgjyCDZFLf0U5g+C6J7UE57noft/hBEPZ0BQoVgGrZ/4WN j04KFhRJxl9gLeZZ+VJtFNjFma4dV+dxFAfX6qjqhIgNu5jF8kzNbebQEjn6lRnEVgbK /Ut9Idi/hKLBKpdcq7ZA8de/DAB5FDGQiBqyR7ohF/W3ipEx40nB5krbZk2Kv2eFpVXC 5KZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kPsFdDQoyAcfneJDfKox3nWALFY9ZxWExsQyFqmbKaY=; b=GTcMS/jNyAClvkrwbC2Si1CZ29VZmUhvzgqQfH6L4Vn6Yo8phV/ysS4r4U+yzL0+ng WOVTsxx/VsjXstGbzAByEIt9QggYO3B+a+6J4ORzCEq7vGtTBo8A1pq/IlblbGXoGUi8 gVeYBiGsPlJw7abk15Kn7yGK+GpGKAMQEBAqyRfXyzjioSUODLjOS7vJfHP/E7KOdJVz LH0QxZVILKQQxr9QIreNamuEeMDh261JlAcgqjXLJ0qEDqrTsKO8civhie4jMnhhYgz7 qSpEKgoQldsHSzZxkyHTvrpeDHx0XOBqwI8xjH0HyDmGr+Z9C/H7qMVmkD8MIs+s6H92 ASug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QSxJUD4v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a1709061e4800b00931b738addasi14816264ejj.907.2023.03.23.03.41.27; Thu, 23 Mar 2023 03:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QSxJUD4v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbjCWKc6 (ORCPT + 99 others); Thu, 23 Mar 2023 06:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbjCWKc0 (ORCPT ); Thu, 23 Mar 2023 06:32:26 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185E21CF4D; Thu, 23 Mar 2023 03:29:36 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id a11so11338483lji.6; Thu, 23 Mar 2023 03:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679567374; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=kPsFdDQoyAcfneJDfKox3nWALFY9ZxWExsQyFqmbKaY=; b=QSxJUD4vh0iWoLM3Sx9XsLseVxx3dN0FYgEfpieJVoCGfMJwily6KbeSIzeMK1xe2h h6vusDHnahtS0wtJmfIFAqIr3P/N0ofQ1KhDaLYecuG7JnsBOi63vUV+kn0nKsVfzhnw 1xi6M1mygTfz/yoM3B9al4J+/zq0Q0J5UdMZrNmbKUXExYwr1DaxXCR54jnuU5SBR8xD CbHeH+UGMZbAn4O5I5OxZGKjtSfy94gqrsjLGm9nvh63HclxhugU+xTN4tVWwHtPq2tl o75okGSnwnIvDMu7Xq9RO6xMKS8QlByEWkgxryA7LE9swFt7I47homJojQOG+mjY0n4N NhwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679567374; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kPsFdDQoyAcfneJDfKox3nWALFY9ZxWExsQyFqmbKaY=; b=J37JWdy2O2Q1IcvpWy/nSJAAVxIHBXJbXJHG2xt7l8ukO7d5lfDc2UA06/DBT0EADq OWFGuPNHEwNJJPvbNlWr7XE6vOKUeIaNMCYbY0XxaZYPjO7ypmd2ARD2ArslkGnx6JhT t7VHGckbQV8FYRpkeWF2SVKw7Oq6aQSyIFuDY4q5KOui3HyItla7oi/tR5aO03pdrhkK ctPlyBALR083rMoK+jl8nMJ4m3lG4uaBfrFz+KusXuwJzbHUpMKczeSNI36jkV3humly arxwutVGo3kOQou6PbR+sCY06cmpnDDLO8Ir8JCyBtzTTZaocD/8Mi2Bobnw0xVC4jBw MWIA== X-Gm-Message-State: AO0yUKU4U6ETrNBnvPB6md7/W1JKi+zYIPFzatu7u1YoaRC+dPjElfyQ w0vTHnz9/RKNKmXjJCBTKmJZGQW6vF8= X-Received: by 2002:a2e:9d05:0:b0:298:a7bd:5c56 with SMTP id t5-20020a2e9d05000000b00298a7bd5c56mr3082849lji.53.1679567373625; Thu, 23 Mar 2023 03:29:33 -0700 (PDT) Received: from [192.168.1.103] ([178.176.74.111]) by smtp.gmail.com with ESMTPSA id h20-20020a2eb0f4000000b0029fb199510bsm892580ljl.53.2023.03.23.03.29.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 03:29:33 -0700 (PDT) Subject: Re: [PATCH v2] usb: dwc3: host: remove dead code in dwc3_host_get_irq() To: Mingxuan Xiang , Thinh Nguyen , Greg Kroah-Hartman Cc: hust-os-kernel-patches@googlegroups.com, Dongliang Mu , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230323095311.1266655-1-mx_xiang@hust.edu.cn> From: Sergei Shtylyov Message-ID: <129aec21-4997-6b8d-5bd2-8e013f575208@gmail.com> Date: Thu, 23 Mar 2023 13:29:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20230323095311.1266655-1-mx_xiang@hust.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 3/23/23 12:53 PM, Mingxuan Xiang wrote: > 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 > --- > v1->v2: remove redundant goto > drivers/usb/dwc3/host.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c > index f6f13e7f1ba1..ca1e8294e835 100644 > --- a/drivers/usb/dwc3/host.c > +++ b/drivers/usb/dwc3/host.c > @@ -54,12 +54,8 @@ static int dwc3_host_get_irq(struct dwc3 *dwc) > irq = platform_get_irq(dwc3_pdev, 0); > if (irq > 0) { > dwc3_host_fill_xhci_irq_res(dwc, irq, NULL); > - goto out; > } Now drop {} please. :-) > > - if (!irq) > - irq = -EINVAL; > - > out: > return irq; > } MBR, Sergey