Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7802668rwl; Thu, 23 Mar 2023 08:51:53 -0700 (PDT) X-Google-Smtp-Source: AKy350YywGAFamkQaaFpWgYNxODKlASN9jqkJKY3yayakG/r28INBHW3ByVD2nQIUAN1EvMld+vw X-Received: by 2002:a17:903:189:b0:1a1:d54b:71df with SMTP id z9-20020a170903018900b001a1d54b71dfmr7093688plg.0.1679586713645; Thu, 23 Mar 2023 08:51:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679586713; cv=pass; d=google.com; s=arc-20160816; b=tmhL0Oulj7XmEH/EONiSaArr/kgY38jHA33bROm/5iT7YosU+9yh7ehx9jDBjL33qk DNeEMHdCkggZ48zyZkYph55NXRPgI6Fk4d4V3qkSZnOxbmojWt2NKRAWTKpdn5lCXrgg iLcyccNgQg7DtBb0fWjf86wgFRDlw/ql4mHbyAuRGUGC67WyPq1lNgqP/TdnmyoJ4ySl IUp+LK95P1UIIV+CkiJrdlmvsVs4JPpJ8wI/IrqAfAkc1Ce1gjDS+d6U4gAWqboB0Yny ZwEaPpX1BszStxtg2mEBDCMrv5Mqhn9a+a3JZ8t4GN3ITlscO9mMMYb8HlEO/RhQnAHl L/PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=iHnhj4ByIDmHtveoynOp27KSxFeYnI/BvL9blv3AJPY=; b=bLFASZtQA0woT5zniyRH63B1qC4huteJyh4G92+R9EGezUteLo5lMZchMaXMALJGiO yQ71KqpEKr6Ul653+fWZ6b08ZyrGN04jGVRzXpu+DZc9JB1/kG/aL7W0O0MuaAc3t70s /xAGPfgQBAP3oQqEUYFNLqBkhqZixr7m+Fjv1qKpCLHmq4kmQPv0+hSIts6kigkrLEms R3B8LZB+SuXbBDR3vNuJADYZW5leAI0QnUDYHnDI/1SHptFLc8VFkXnI+tMtcgq82csQ 86kDF+yKf7qHX3/qIT/0Fg2zY1goCQVT+f9BNj4pT3Q+nytwCme6K7D03uxi2CV3QhEA ZjwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=XDFxrzQ6; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a170902ce9000b001a1c54c1a64si14474693plg.250.2023.03.23.08.51.40; Thu, 23 Mar 2023 08:51:53 -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=@suse.com header.s=selector1 header.b=XDFxrzQ6; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjCWPig (ORCPT + 99 others); Thu, 23 Mar 2023 11:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjCWPie (ORCPT ); Thu, 23 Mar 2023 11:38:34 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2059.outbound.protection.outlook.com [40.107.8.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C758F9EEF; Thu, 23 Mar 2023 08:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hidMWQ4saLVqc37PgryR0+0By4llT00agk+ikaXfHHtyk5gIcoSY+Tlg7YEqKVhHcVpM3ICxbnScmuF5yMkQIQnxGSZXu56y3tfwqdHovgQxsekLa/Po7v8PH7kLvi8N6lAvsuwCg4l2hAHYMIyKwmyzKY+r42YTRft2KVekE3BDVPBxXXL0xyhJ+jsVPM9xkS0wHOszt88NkAu4xDLWQ8/rYtcSxioxv/JAEJtt8nN0OmQuC023VErq+bx4zeFXZATpsdNpbZgi0Vmhl5OK/sIrXKBsdT8zGvmwnSi1gDBFc3EO27htfQRZUBaAMnLczsjIQGHsFmrOa4UL4lZ6wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iHnhj4ByIDmHtveoynOp27KSxFeYnI/BvL9blv3AJPY=; b=IDVpOkMt22IELVtve+WxNsoXT7TBjM65pP5KlAk9xL+dqelYMqNlwmVnh2OQVB1BMARQF5YQTYmhs1UCyCJPRRwrUaRD64iwZZPLFwzeqTq194iCbweIBqN5JSuDnmxKEUUY/Q/A+9tM4KQANyCfEM6P8X1SAJrjWHBpfBh6JGQBGP3oNyPQXFj1kOHY8na6RlpDVp3nxPXkG82m+sUvR6W1avyyfYlVl2wCBJbD8xNWJsBSGBGPzgXhNlKXIlLO9wQoX4SiisdIaQ4aq7QQ/uGNdoKshLfz3tPclpfpxW2R/wXqr0sGiqX7TUAwDP2YNB9VJaPgQNB67Jf6bRFX+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iHnhj4ByIDmHtveoynOp27KSxFeYnI/BvL9blv3AJPY=; b=XDFxrzQ6psp38O+gA7DjA8rIT9HIFIWToekbkL5vCOBkcfkSH7YHiEacVGVzycCpih2KH3xFMxlQr43VqIiqYImVhGOdZ17JQHlX9uxw3Wv3qU2e5BokscO1dQKMwEgCn9aTA9NqWgOYPUSgNaT/3MsWsadfAWI7MtWOczAvqxDzV2juzCo1weF4FXatWjXbqioVLY29BSOMsMXmsUZYlplpp+yENIMi/dj6bjvyZRjzlaXBoYn0Z2SCyUWoT20jhw7lV9DpOzGW9SpDnyi04i4UWHMRTsWaBNXL/VffBUZesD6pkyy8XenCTGIJLqPpg4aFfbJeZ5UKHwvY6ZsElQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) by DU0PR04MB9636.eurprd04.prod.outlook.com (2603:10a6:10:320::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 15:38:28 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::2ea:4a86:9ab7]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::2ea:4a86:9ab7%3]) with mapi id 15.20.6178.038; Thu, 23 Mar 2023 15:38:28 +0000 Message-ID: <3b3f6024-1ce2-9d8f-f5bf-e30993256fab@suse.com> Date: Thu, 23 Mar 2023 16:38:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2] usb: dwc3: host: remove dead code in dwc3_host_get_irq() Content-Language: en-US To: Dan Carpenter , Oliver Neukum Cc: Sergei Shtylyov , Mingxuan Xiang , Thinh Nguyen , Greg Kroah-Hartman , 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> <129aec21-4997-6b8d-5bd2-8e013f575208@gmail.com> <73fd29ce-3072-dfce-ebf0-3e197230fa94@suse.com> <201fba22-f537-4d1f-bfc4-e4dc931707bc@kili.mountain> <181feb34-c46d-cadb-ad20-46074a53b4c9@suse.com> <6677e2c6-b621-4c7e-9dd6-631a02ce5996@kili.mountain> From: Oliver Neukum In-Reply-To: <6677e2c6-b621-4c7e-9dd6-631a02ce5996@kili.mountain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0047.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::18) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|DU0PR04MB9636:EE_ X-MS-Office365-Filtering-Correlation-Id: f67ec1f7-1dc4-4108-229b-08db2bb4a609 X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VRrCvUZiJE4FQIuS7a4zBqfeJ1Ua5zhiZJRp7pB0iPpJL61zsWdPjJjCn8c5jOOK/kdODGrg7WXeSfY4BoZrv5YFyN/SnuAYkYkio89Pt+zE+wn3noatYgU1yh2BZZnisT5bNP5ZxKUAQcURRB8LlL2xUfrEA+jSmMZx6avcb9z1NNtXrybV8JNjnW9eLymJIiYWRwkOYNTnM7LWZjnr0V+aYJfXh8fwSbNAjc3V3R0mGeJwuNNi2lJctueNNcJIA/pWXR2/OSsRPcm3yQ02BxWYH1sbDxQLogKuXSx1zYcet1SlpcNzR4PCopi68B3S4gJl9wH/1fDV/21rhwdGlmUxNIjAMO+iucby4DSinrTCnw9jxagPGuaPrT0zzK8BKIpL85VxZK0D1Tvw230+h9+SlF8fmX+YU7nK3kQ8CeNQeKe6T5C47qAi3Ir59RJoBcHlVbDl0QJu+mHhoPTqaJCdOIG1jviI7He2wzsEoWBFf/spwPqc/EGGv/TGP4tpYF0q96pn6ybrrZUN50s7/T/FUGzdiEX+uqNeyHL7wrV8JHuXIPjUb3KFzaIGUS/NruXE/HLHMam2Kl0ZsJjHldPT9XEHd8GFZoBUNO/C7qqXkUjm8wnNWFx7REcqiI2yPlP2ImdN/qKEbRdCr5cq30cTQOvg5CoZZs4tv8Dn9orNb/lWQO58Pl/BtPd1CUotk2I+3k7kyPtkY1OZ1I8tDaPSkWBjagPGyday8rkRWts= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7104.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(346002)(136003)(396003)(39850400004)(366004)(376002)(451199018)(66556008)(66946007)(66476007)(8676002)(4326008)(110136005)(316002)(54906003)(5660300002)(41300700001)(53546011)(6512007)(6506007)(6666004)(8936002)(2616005)(186003)(478600001)(6486002)(31696002)(86362001)(558084003)(36756003)(38100700002)(2906002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MVNnQ0Fub08rQktIQ0tOaGNMR0g4d0pEb2hQbWNxRmJuaUM3b2x5MC9qaU1T?= =?utf-8?B?dWFuN3QvMm5vWU04UFRITzBrZjhTdjA5WTJYRHowT1NhRjlZcjVWNnBaVVVs?= =?utf-8?B?LzlwTGVwY3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ZZ1E5K2JqUHI3WFB2?= =?utf-8?B?c0dpeVVCSi9pbUJVZG0yTmpTeVJja05iMUtDd0xKQlBuSmpZVkR6Ym9wdXNl?= =?utf-8?B?OFA4K0k0Wk5Senk0S3Q1YmdaenNmRmpkWncySkcxNFVFdEp5LzNlME5hcjMz?= =?utf-8?B?ajU1VE1WTlFZU1k2MENPRHVINHVab0t6VDNNcG1WM0ZQRzVNZHpoOHQxSjNa?= =?utf-8?B?WDV0ZUk3cVp1b0h6dlBPaUpuY0JqK3lKVEtJSFZPVTBCeW5tT3puSk9LeEtO?= =?utf-8?Q?c+PnfZZVaJISyRtMoEroyiRL/CX5q6DEDsWiXOUfDi9e?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: f67ec1f7-1dc4-4108-229b-08db2bb4a609 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 15:38:28.4031 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cAODvQ8Csbo0bXELF6ZqbzEJMHoPVMvYHHaQ12Zn0OgZo4AFRwaYmCKnsbWhl1nrwvNkj2W4smW6E4CkEU06qQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9636 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 23.03.23 15:06, Dan Carpenter wrote: >> irq != 0 > > You've reversed this if statement in your head. It says that if > platform_get_irq() returns zero, then return -EINVAL. > Argh. You are right. Sorry Oliver