Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6493276rwr; Mon, 24 Apr 2023 22:13:40 -0700 (PDT) X-Google-Smtp-Source: AKy350aEikdVD6WNcDszcj8dHUDB1DYWMDZRoTKZvoXFHTqE22j9y39T6kOMCdLW4YOzm0YS+R8x X-Received: by 2002:a17:90a:940f:b0:246:b4b4:555f with SMTP id r15-20020a17090a940f00b00246b4b4555fmr16216788pjo.7.1682399620620; Mon, 24 Apr 2023 22:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682399620; cv=none; d=google.com; s=arc-20160816; b=SCKVt4vCHHwD2/iilmtPcunGR+EIBzODkBfH8vd3PEEngK9swgyJYsaQqXuDcHaEfT /jgeAAuENed+35fB7/IO2K7FTJ9an4TCY1TshOPvjyawSb8aN7Cl4g+dUqu7pdhlumo7 SWG2qs9zcNNVy+4gFtILlqkPwOs7M0vv56YYMraANBjoUUqcVWbyBYw4ygAedkJmkgiY 5UTUPKtNUHVE0BeXVvMLdOadJmtb7pIsNrMmAT2E27dlgpBkWzeH/uP71a9HKLQGpScl 15njLGv8pWEZHYUJ/jfhsqY6jNDocosZxKqXYIETIg9V9iGXn6HJIzohex5QDh8jqaHi OEwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cY49EelLz60Ry3cIB4Mz7czjI9V9+FtvpgdhLuq5vFo=; b=ic7wsAQ2H5ivCuhTwkTKwLEeIfHsbZDzy0Py1bSgTC8RNiKhtTV5GT4NFQK3lYZWCt uXRGYjQovnJAGQ3ywGRVc/AFX7lIvqnUOfp5dKvBM8UXbmZUgBQEmVG1cODICA99UM3x d4eBiD5GhXO/A5JIOz3DfDCPw5jLYcodI1iE1fPr8R6WVyeQkpjHM1nx+uvIj5ISWffE //fD8JGyzWqRYNrcoPq2sQh/Qoxn3od9KYDV0yFhU9Hkij4C7/naDK7mvmR+iUnsFebM o+lL6ssouNWQ+UvTxsJJda2ZxctOiqu1eHJ/W8UiKfGBm8/xXYLFktMziOyufwDRWrgV STNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qLW4ihj6; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a17090a6a8600b002478b610a39si15802790pjj.75.2023.04.24.22.13.27; Mon, 24 Apr 2023 22:13:40 -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=@linuxfoundation.org header.s=korg header.b=qLW4ihj6; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbjDYFMW (ORCPT + 99 others); Tue, 25 Apr 2023 01:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjDYFMU (ORCPT ); Tue, 25 Apr 2023 01:12:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E02C83CB; Mon, 24 Apr 2023 22:12:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39054614B0; Tue, 25 Apr 2023 05:12:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C1FCC433D2; Tue, 25 Apr 2023 05:12:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682399538; bh=e+5pBIG9ZCreZChuRW8NpnnKMK4kVj6h0Q9BwcdUO6Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qLW4ihj6ONnqmEf7FmSz7jDLFiF3np1+qR6BGToOM5/9mE0b2B85MBTx80vXpYKRw o4Yaw1Da5mqG9LeSezMbpciLcto7LZ7bI1mRwbJM8rf94Nv6SyiZAH6Vol2px2T5xr TGb2IxthourIesKCWc4YxgqU2mK/F0fLhiJzUSVQ= Date: Tue, 25 Apr 2023 07:12:15 +0200 From: Greg Kroah-Hartman To: Liang Yuhang Cc: Thinh Nguyen , hust-os-kernel-patches@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v2] usb: dwc3: remove dead code in dwc3_otg_get_irq Message-ID: References: <20230425015532.13622-1-lihuya@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425015532.13622-1-lihuya@hust.edu.cn> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Tue, Apr 25, 2023 at 09:55:32AM +0800, Liang Yuhang wrote: > platform_get_irq() only return non-zero irq number on success, or > negative error number on failure. > > There is no need to check the return value of platform_get_irq() > to determine the return value of dwc3_otg_get_irq(), removing > them to solve this problem. > > Signed-off-by: Liang Yuhang > > --- > v1 -> v2: change name to real name > --- > drivers/usb/dwc3/drd.c | 5 ----- > 1 file changed, 5 deletions(-) Why is this a RESEND? And why is it resent? You changed something from v1 to v2, but that does not mean it is a resend. Note, I STRONGLY encourage people to get experience by working in drivers/staging/ first, before going out to the rest of the kernel and dealing with fast-moving subsystems. Perhaps try that first? thanks, greg k-h