From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbdHKOoj (ORCPT ); Fri, 11 Aug 2017 10:44:39 -0400 Received: from smtprelay0249.hostedemail.com ([216.40.44.249]:59548 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753154AbdHKOog (ORCPT ); Fri, 11 Aug 2017 10:44:36 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960:965:966:967:973:988:989:1042:1260:1263:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2525:2553:2560:2563:2682:2685:2828:2859:2899:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4385:4390:4395:4560:5007:6119:6737:7576:7903:9025:9388:9545:10004:10049:10400:10471:10848:10967:11026:11232:11658:11914:12043:12048:12295:12296:12438:12555:12740:12760:12895:13069:13095:13255:13311:13357:13439:14094:14659:14721:14849:21080:21212:21433:21451:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: care08_61e9ff2699614 X-Filterd-Recvd-Size: 2297 Message-ID: <1502462671.3099.13.camel@perches.com> Subject: Re: [PATCH] ASoC: Freescale: Delete an error message for a failed memory allocation in three functions From: Joe Perches To: SF Markus Elfring , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, Fabio Estevam , Jaroslav Kysela , Liam Girdwood , Mark Brown , Nicolin Chen , Takashi Iwai , Timur Tabi , Xiubo Li Cc: LKML , kernel-janitors@vger.kernel.org Date: Fri, 11 Aug 2017 07:44:31 -0700 In-Reply-To: <671f4a88-bee9-85b4-ea9b-68abcdb40443@users.sourceforge.net> References: <671f4a88-bee9-85b4-ea9b-68abcdb40443@users.sourceforge.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2017-08-11 at 15:32 +0200, SF Markus Elfring wrote: > From 885ccd6c63291dcd4854a0cbaab5188cdc3db805 Mon Sep 17 00:00:00 2001 > From: Markus Elfring > Date: Fri, 11 Aug 2017 15:10:43 +0200 > Subject: [PATCH] ASoC: Freescale: Delete an error message for a failed memory allocation in three functions > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf This doesn't have anything to do with refactoring strings. Just note that allocations without GFP_NOWARN do a dump_stack() > diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c [] > @@ -282,7 +282,5 @@ static int fsl_asrc_dma_startup(struct snd_pcm_substream *substream) > - if (!pair) { > - dev_err(dev, "failed to allocate pair\n"); > + if (!pair) > return -ENOMEM; > - } Use normal diff output that shows 3 lines of context above and below the patched lines.