Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757178AbZCGW1j (ORCPT ); Sat, 7 Mar 2009 17:27:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756770AbZCGW11 (ORCPT ); Sat, 7 Mar 2009 17:27:27 -0500 Received: from casper.infradead.org ([85.118.1.10]:48070 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756514AbZCGW1Z (ORCPT ); Sat, 7 Mar 2009 17:27:25 -0500 Date: Sat, 7 Mar 2009 14:26:09 -0800 From: Arjan van de Ven To: Tilman Schmidt Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Paul Bolle , Hansjoerg Lipp Subject: Re: [PATCH 1/2] gigaset: return -ENOSYS for unimplemented functions Message-ID: <20090307142609.2995bb3d@infradead.org> In-Reply-To: <20090307-patch-01.tilman@imap.cc> References: <20090307-patch-00.tilman@imap.cc> <20090307-patch-01.tilman@imap.cc> Organization: Intel X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 27 On Sat, 7 Mar 2009 23:10:57 +0100 (CET) Tilman Schmidt wrote: > From: Paul Bolle > > A number of functions in the usb_gigaset module will return -EINVAL if > CONFIG_GIGASET_UNDOCREQ is not set. Make these return -ENOSYS as it's > more specific and it might make it easier to see (from userspace) why > these functions actually fail. > > Impact: some error return codes changed ENODEV is what would be more appropriate. ENOSYS shuoldn't be returned from drivers, only from unimplemented system calls! -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/