From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: Return -1 instead of -EINVAL to ensure consistency Date: Wed, 22 Sep 2010 16:49:05 +0100 Message-ID: <20100922154905.GJ26395@rakim.wolfsonmicro.main> References: <1285085047-31508-1-git-send-email-dp@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id A304810390B for ; Wed, 22 Sep 2010 17:49:06 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1285085047-31508-1-git-send-email-dp@opensource.wolfsonmicro.com> 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: Dimitris Papastamos Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Liam Girdwood List-Id: alsa-devel@alsa-project.org On Tue, Sep 21, 2010 at 05:04:07PM +0100, Dimitris Papastamos wrote: > The code can't really cope with I/O errors, so it would be better > to be consistent throughout all cache functions and return -1 instead > of -EINVAL. > > The return value of snd_soc_read(...) is mostly checked in the probe > function and nowhere else. Applied, thanks.