From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936516AbcIFQjU (ORCPT ); Tue, 6 Sep 2016 12:39:20 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35925 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933172AbcIFQjP (ORCPT ); Tue, 6 Sep 2016 12:39:15 -0400 Date: Tue, 6 Sep 2016 18:39:10 +0200 From: Richard Cochran To: Arnd Bergmann Cc: "David S. Miller" , Kefeng Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ptp: ixp46x: remove NO_IRQ handling Message-ID: <20160906163910.GC7012@localhost.localdomain> References: <20160906142849.3297250-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160906142849.3297250-1-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2016 at 04:28:30PM +0200, Arnd Bergmann wrote: > gpio_to_irq does not return NO_IRQ but instead returns a negative > error code on failure. Returning NO_IRQ from the function has no > negative effects as we only compare the result to the expected > interrupt number, but it's better to return a proper failure > code for consistency, and we should remove NO_IRQ from the kernel > entirely. > > Signed-off-by: Arnd Bergmann Acked-by: Richard Cochran