From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbdBZIEZ (ORCPT ); Sun, 26 Feb 2017 03:04:25 -0500 Received: from smtp-proxy003.phy.lolipop.jp ([157.7.104.44]:54401 "EHLO smtp-proxy003.phy.lolipop.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567AbdBZIEX (ORCPT ); Sun, 26 Feb 2017 03:04:23 -0500 Subject: Re: [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message To: Mihai-Valentin DUMITRU , perex@perex.cz, tiwai@suse.com, heiko@sntech.de References: <20170225101834.28232-1-mihai.dumitru2201@stud.acs.upb.ro> Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, broonie@kernel.org, Mihai-Valentin DUMITRU , linux-arm-kernel@lists.infradead.org From: Takashi Sakamoto Message-ID: Date: Sun, 26 Feb 2017 17:04:16 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170225101834.28232-1-mihai.dumitru2201@stud.acs.upb.ro> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Feb 25 2017 19:18, Mihai-Valentin DUMITRU wrote: > This was reported by checkpatch.pl > > Signed-off-by: Mihai-Valentin DUMITRU > --- > sound/soc/rockchip/rockchip_i2s.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c > index 974915cb4c4f..d02a1045fc0b 100644 > --- a/sound/soc/rockchip/rockchip_i2s.c > +++ b/sound/soc/rockchip/rockchip_i2s.c > @@ -551,10 +551,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev) > int val; > > i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); > - if (!i2s) { > - dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n"); > + if (!i2s) The line for dev_warn() should be kept. > return -ENOMEM; > - } > > i2s->dev = &pdev->dev; Regards Takashi Sakamoto