Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753237AbdLEJyT (ORCPT ); Tue, 5 Dec 2017 04:54:19 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:43334 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbdLEJyP (ORCPT ); Tue, 5 Dec 2017 04:54:15 -0500 X-Google-Smtp-Source: AGs4zMZfXllGUF6qFgE8xhyLGw/h6gdUiG72z9mmXmjlANW7DrM3dm5XyQAT+A02WP1j5ArA2UiT1A== Subject: Re: [PATCH 0/7 v2] net: Fix platform_get_irq's error checking To: Arvind Yadav , wg@grandegger.com, mkl@pengutronix.de, michal.simek@xilinx.com, opendmb@gmail.com, f.fainelli@gmail.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org References: <1512409703-20881-1-git-send-email-arvind.yadav.cs@gmail.com> From: Sergei Shtylyov Message-ID: Date: Tue, 5 Dec 2017 12:54:12 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1512409703-20881-1-git-send-email-arvind.yadav.cs@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 373 Lines: 13 On 12/4/2017 8:48 PM, Arvind Yadav wrote: > The platform_get_irq() function returns negative number if an error > occurs, Zero if No irq is found and positive number if irq gets successful. No, returning 0 is not a failure indication anymore. It used to be but not any longer... > platform_get_irq() error checking for only zero is not correct. [...] MBR, Sergei