Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32337079rwd; Fri, 7 Jul 2023 12:11:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlEseGZsG/vxPh5tMVD/q8UeNZAyaiLheOuuFR0jJ9WprsIgyL0FhwfKpXCUyyAXkiFOVTWP X-Received: by 2002:a05:6a00:1915:b0:64a:2dd6:4f18 with SMTP id y21-20020a056a00191500b0064a2dd64f18mr5335277pfi.13.1688757072921; Fri, 07 Jul 2023 12:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688757072; cv=none; d=google.com; s=arc-20160816; b=pd0FyAdqYDVBcdRTE/SAIC8mlECvSBe6eoibxwDvxUJ5OaF84bFqzT53WnzOY1ZYfk x8GsJSjCkoDG2XrKsuEawpFU3zYNXuk2e2XvwvP78KQZSKV7Jofn67b8VFfN73ifm40L lYTTbIx+8G3xTrtGEAIA8AvSkU/hUcT/huj8zL+O09cYVhw5YRyKOh3Uq1ObTJCR6ibX q5VBMQtmuLzTEuB5g3vs4wq8RPH9XwFuczaP37U5LrunuFtuX9l+Ge5zFjyP9Hb4VrV3 KPVJbt/kJUC4P/mkV+6B6FXl+45cxu+W2JJ2YQ8UzP7WV26D1P6WQbvgnFjeBAXJ0JBE lOfg== 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:organization :from:references:cc:to:subject; bh=Ezsnrz2bqH6zwWPEHeemtXMWbvISQs+v2OYyXcMYkH8=; fh=NxK186UNMJ4+KgXNOJvB6qlYAw6Uw3TUVrdKR9pYHfU=; b=N183oD4uG6wazAliujTcB6eusnr6Lqp80Hfrp+4rl3kIWlf8wSGar08uyr0JGuIJKw YbxJwgWBLgHf7CG34fWjCvcJ1G54jScFRFhldVjo/EMPcYH9xlvS+2oi+X6IfixiM2UY AHOW8BEOqnHhi2xutVm7q2fAol1vTL2KuJ3rM8anzfUFrUtv7zU3h0HdqQQ4clNp0d8v /Q4SbpuDfk2QilaxRJeoEit3BJugyqxadAtOy7wU10EIE9p2hUz4S5udiUFAxjALwjI3 UV+eJVBCuT3QyWO/wIsCUZMj1z/MXfw2D+Gh/4sybS9myGop5DxAm+GJhQf0xRbitjPc nWcg== 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 u195-20020a6379cc000000b005533aa71fabsi4516749pgc.572.2023.07.07.12.11.01; Fri, 07 Jul 2023 12:11:12 -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 S232936AbjGGTHF (ORCPT + 99 others); Fri, 7 Jul 2023 15:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232889AbjGGTHE (ORCPT ); Fri, 7 Jul 2023 15:07:04 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E5D2727; Fri, 7 Jul 2023 12:06:44 -0700 (PDT) Received: from [192.168.1.103] (31.173.86.230) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Fri, 7 Jul 2023 22:06:42 +0300 Subject: Re: [PATCH v2 06/11] ata: sata_rcar: Remove unnecessary return value check To: Yangtao Li , Damien Le Moal CC: , , References: <20230707095513.64224-1-frank.li@vivo.com> <20230707095513.64224-6-frank.li@vivo.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <67fde0cc-4136-f4bb-5800-bd88e7128ead@omp.ru> Date: Fri, 7 Jul 2023 22:06:41 +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: <20230707095513.64224-6-frank.li@vivo.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [31.173.86.230] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.59, Database issued on: 07/07/2023 18:41:49 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 178491 [Jul 07 2023] X-KSE-AntiSpam-Info: Version: 5.9.59.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 520 520 ccb018a655251011855942a2571029252d3d69a2 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_uf_ne_domains} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;git.kernel.org:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.86.230 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 07/07/2023 18:48:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 7/7/2023 3:11:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/7/23 12:55 PM, Yangtao Li wrote: > As commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 > is invalid") says, there is no need to check if the platform_get_irq > return value is 0. Let's remove it. No, that patch still allows returning IRQ0, actually you need: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ce753ad1549cbe9ccaea4c06a1f5fa47432c8289 > Signed-off-by: Yangtao Li Aside from that: Reviewed-by: Sergey Shtylyov [...] MBR, Sergey