From: Dan Carpenter Subject: Re: [patch] ALSA: asihpi - fix return type of hpios_locked_mem_alloc() Date: Thu, 29 Mar 2012 08:56:28 +0300 Message-ID: <20120329055628.GB3289@mwanda> References: <20120328065702.GA9113@elgon.mountain> <4F7385F8.4050004@audioscience.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by alsa0.perex.cz (Postfix) with ESMTP id 3D462104319 for ; Thu, 29 Mar 2012 07:54:36 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: Eliot Blennerhassett , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org List-Id: alsa-devel@alsa-project.org I'm obviously in favour of using standard error codes where ever possible. But when I'm writing a change like this, then I do look at the surrounding context because there are places the use custom error codes (SCSI is an example). In this case, I was confused because there aren't any other error codes in this file, and also the comment says that it should return -ENOMEM. regards, dan carpenter