Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp426662rwl; Thu, 23 Mar 2023 18:52:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bmfJWHPH4j/kqpjQPJZBuD4c5A0iZPfzaVQr9UYHqtbpLr21FL9rrkqQ7UGha6FetJdq66 X-Received: by 2002:a17:906:3283:b0:930:831f:6744 with SMTP id 3-20020a170906328300b00930831f6744mr961013ejw.45.1679622729026; Thu, 23 Mar 2023 18:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679622729; cv=none; d=google.com; s=arc-20160816; b=lweRLv1vxjVm1c5pyHB4qqQYh63or9SsYyTjzcZTaKOuYbNcRke6G39NtaJzHIs3WP RevKPg9xlIGJwYmYZ8fdhhocBBjFBTgoDgH/g/L2aafVPJvJfuNjz/MBjtvn6kuu4tdE UUuTyvNqDB8KPBt65dEVQACbF0vLw05JIRnk94veq8pEubLvwvI6lS97Mio6SEj1LRCe 0Z8A2IuKnHSeMwY6zRtM8jNWWcGc2ZRqfADtSeTnminve2sVXmwLrM5uDMgHK6LhcL/k PcECWglE6PyRsbvlS0vMQzx/o284kUXs72vMxGJvtXkzISm2iiRHLOQczUT5J9OnQ6ZF GlFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=QaCu6E3D8hfFP+dJBmMFt5M6ka+Ism4ttuOeEi+cxlg=; b=MR5B0xgGRdvplOMpy5U4tAbwOURJzp31CaB2bUFcM3XrIMsV5a2fZdrcGqph02XsWP cB04jCJ14iKxdR/xXqKycFuPK/G0rHfLXvBvvnXLMEXnhccPgERz1eMq8NjQSkfCtM1x L7dYrzpRm+K//ZsAqCfQznZkeiidPJsWSRs0uCk3OdHn9tWmC2e/i8JJ+yrM78hO/RDt PmFqbfcXe8By943tN8lpdKIJzr0lDGmH44W2MihqB/ZxD3Z/SISY/+i64+STFlh0iLQp gb+Zp38n5BX0+VjP5YHLs0kNkemuOCXiuz3O0ER61Fh6NJX0a8Rhcbo0vZOUCO3f5yzy DNuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz15-20020a1709077d8f00b0093defbd626esi812956ejc.1013.2023.03.23.18.51.43; Thu, 23 Mar 2023 18:52:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbjCXBr1 (ORCPT + 99 others); Thu, 23 Mar 2023 21:47:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCXBr0 (ORCPT ); Thu, 23 Mar 2023 21:47:26 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36271A672; Thu, 23 Mar 2023 18:47:24 -0700 (PDT) Received: from [IPV6:2001:250:4000:5113:f9da:eb9b:68ce:6472] ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=PLAIN bits=0) by mx1.hust.edu.cn with ESMTP id 32O1keId026079-32O1keIe026079 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 24 Mar 2023 09:46:40 +0800 Message-ID: <8271c37c-4995-445c-89b7-90848f7ef3cc@hust.edu.cn> Date: Fri, 24 Mar 2023 09:46:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2] usb: dwc3: host: remove dead code in dwc3_host_get_irq() To: Greg Kroah-Hartman , Mingxuan Xiang Cc: Thinh Nguyen , hust-os-kernel-patches@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230323095311.1266655-1-mx_xiang@hust.edu.cn> From: Dongliang Mu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-0.0 required=5.0 tests=NICE_REPLY_A,SPF_HELO_PASS, 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 2023/3/23 23:40, Greg Kroah-Hartman wrote: > On Thu, Mar 23, 2023 at 05:53:10PM +0800, Mingxuan Xiang wrote: >> platform_get_irq() no longer returns 0, so there is no >> need to check whether the return value is 0. > How did you find this issue? > > How was it tested? Hi Greg, We found this issue by Smatch. Our team is trying fix some true bugs found by Smatch, with the help of Dan. Since this is a dead code removal, we only do compilation testing. > > thanks, > > greg k-h