Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526Ab3EaGS6 (ORCPT ); Fri, 31 May 2013 02:18:58 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37005 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147Ab3EaGSx (ORCPT ); Fri, 31 May 2013 02:18:53 -0400 Date: Fri, 31 May 2013 08:19:23 +0200 Message-ID: From: Takashi Iwai To: Wei Yongjun Cc: perex@perex.cz, wfp5p@virginia.edu, adam.buchbinder@gmail.com, jkosina@suse.cz, Julia.Lawall@lip6.fr, yongjun_wei@trendmicro.com.cn, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: sis7019: fix error return code in sis_chip_create() In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 39 At Thu, 30 May 2013 19:55:34 +0800, Wei Yongjun wrote: > > From: Wei Yongjun > > Fix to return a negative error code in the pci_set_dma_mask() error > handling case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Thanks, applied. Takashi > --- > sound/pci/sis7019.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c > index f2639a0..e413b4e 100644 > --- a/sound/pci/sis7019.c > +++ b/sound/pci/sis7019.c > @@ -1341,7 +1341,8 @@ static int sis_chip_create(struct snd_card *card, > if (rc) > goto error_out; > > - if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { > + rc = pci_set_dma_mask(pci, DMA_BIT_MASK(30)); > + if (rc < 0) { > dev_err(&pci->dev, "architecture does not support 30-bit PCI busmaster DMA"); > goto error_out_enabled; > } > -- 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/