Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp600212rwl; Thu, 23 Mar 2023 22:23:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZoc6ZnJUJWssRk6RY48dHkOWX26K7qcOtB2X2O8MB3MtCXq6fjhwmKo1OxU4U5LW1DivS X-Received: by 2002:a17:907:3e1a:b0:932:853c:c958 with SMTP id hp26-20020a1709073e1a00b00932853cc958mr1601882ejc.25.1679635410507; Thu, 23 Mar 2023 22:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635410; cv=none; d=google.com; s=arc-20160816; b=uWlHRB19XiP111iYI/qCT2QsJVrYxXpYQuxhm6bm4ILkK95KQxeNAxnvB2XYs4EvW1 eD87osvciC8uYMdUzYFwQ1cvsJ3Aql3S87nnIeGLLXeKZVJ1MjblpoVY2zw93u+f0Kp3 ek8ZFo1lK4HuJkYn3P5vy0hXHKrk1Njbgo4PrSqEY3IHu+NRe8IdGjxQhR7ULnffnqUz Xx8sh5Lysx9LpR/Ke7sR2dExkf3x0pjpbHzhmvjfQXS2uUCBIbppUqKaMNIzyi79d/09 ZQywLvPMmqEtjf2/qbHy4yo1SYIjCA/C9wp74ydc6Sfwbex/9q5+eg5cBsedafFLGsN0 x5BQ== 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=DgMJhwS2Xnu1dujWwQicC1P6s4ScU/HJCaTYtsPNp0M=; b=Lrvp2rCeVW+LQraK5wWpWdNY1NY9oW7Ds3Ntf5dqqzjH0qiN5PUuZJ5H3U1qBqcSUm MmPzezvDtc+EbFNCiuIbwRo8h13WjOQdi2X5fYlCbgWNK+lYrrlU02lBFh+F2Txdi5mE xlLpvKfL3Xv3MQdoS6MW+2DAJZcXCrOkayKItE6BYBcwxK8qe+8bgtj3M2AuxmcS2fPZ JJPHK6YiiFvszqSVaEi27NmOPdg5/At/FZJhMWshVB2FWzmPYsu0dC8DMt62jNHxTuzB B3dFGGm+kaKXJ1vLrtYdmUE3wRXsOLLrLG8UCkT05iMSxgGRRjEBT95OK2QUIckYpCH+ U2FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=okXU+HSH; 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 cd1-20020a170906b34100b009272b8f3259si20204172ejb.489.2023.03.23.22.23.06; Thu, 23 Mar 2023 22:23:30 -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=okXU+HSH; 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 S231350AbjCXFR2 (ORCPT + 99 others); Fri, 24 Mar 2023 01:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCXFR0 (ORCPT ); Fri, 24 Mar 2023 01:17:26 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 527575BA9; Thu, 23 Mar 2023 22:17:25 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id t10so3277214edd.12; Thu, 23 Mar 2023 22:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679635044; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DgMJhwS2Xnu1dujWwQicC1P6s4ScU/HJCaTYtsPNp0M=; b=okXU+HSHoIR7zcb6P9r1xoc+cx3fT2BGV5Y7hEwzORYAzynz7H9Tq3+8rg4CrV+SYM gJ9P7yRdq40mjMrKZbzRUqPvpNXT5SdboO/sOO58FrxHsGzughp1KohcBJNZNXKhVmlj veGilEGD5ds1nSdcNJpEpSM9mGBi4v9Q/t/4rcZDzc6QEsxJjn6dHX5VfZ9H+akaSo3r d7oqekKcRJYqaqrRu41AozNCtMpmIQAy2zjvcjWPnW67pKh9nUEdmGxpy6M1sYoMBr6P SkwsMHbhT/tW4mc7yTj8Na1Oky00vh+B9eIux0PntL4XwqLmvZI2gnNz0ymW1lu8PAqg OrXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679635044; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DgMJhwS2Xnu1dujWwQicC1P6s4ScU/HJCaTYtsPNp0M=; b=7lFOgGNesPJT4oec+4NYvxthaRVMLMx6DlSHO2JtwzNkYH00Y58HKOh6/geMr2fiLy qnLdoEpzh1ZkLlkB1/ZQ9s+R1PnLV9VsHUAU8WYTheZ/VGkSd5tLZj/k2X+L4M99DE+K bYylImQbdypUQT4bUgZWdDKFpOWyLqUNls820p73WzU58gpMX68dSsulVlJvO7DfEC6F Xma5vvnMwX47kyA9nnWQb4XfTMxuMk4ESL51uIFfvPYXB2z/xaw1M8Hs7ME5DANq7Nir 2zWcIR7KweqWqL1zuyl9awH1qW3R7afuBcRhDWoPehGLdrX+AxudO4of/YscVWnL8Pcj 3fbQ== X-Gm-Message-State: AAQBX9cuBHvXshMbvugeTCWFYtVPK5h/9rvRpSpJCSuF2nZgEko4ohlP hzCe3g9uXe1biN5oMctNlPk= X-Received: by 2002:a17:906:9512:b0:92f:1418:27f0 with SMTP id u18-20020a170906951200b0092f141827f0mr1415192ejx.34.1679635043810; Thu, 23 Mar 2023 22:17:23 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id a25-20020a17090680d900b008e3bf17fb2asm9759278ejx.19.2023.03.23.22.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 22:17:23 -0700 (PDT) Date: Fri, 24 Mar 2023 08:17:19 +0300 From: Dan Carpenter To: Dongliang Mu Cc: Greg Kroah-Hartman , Mingxuan Xiang , Thinh Nguyen , hust-os-kernel-patches@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: dwc3: host: remove dead code in dwc3_host_get_irq() Message-ID: References: <20230323095311.1266655-1-mx_xiang@hust.edu.cn> <8271c37c-4995-445c-89b7-90848f7ef3cc@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8271c37c-4995-445c-89b7-90848f7ef3cc@hust.edu.cn> X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, 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 Fri, Mar 24, 2023 at 09:46:40AM +0800, Dongliang Mu wrote: > > 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. LOL. What did I do to get thrown under the bus like this? > > Since this is a dead code removal, we only do compilation testing. > Just v3 and mention in the commit message that the issue was found by Smatch and the warning message that Smatch prints. Put under the --- cut off line that it has only been compile tested. Also we needed to send a v3 anyway to remove the {} curly braces. regards, dan carpenter