From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbaLCROy (ORCPT ); Wed, 3 Dec 2014 12:14:54 -0500 Received: from smtprelay0170.hostedemail.com ([216.40.44.170]:44014 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751114AbaLCROw (ORCPT ); Wed, 3 Dec 2014 12:14:52 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:965:966:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3873:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4385:4390:4395:5007:6261:8660:8985:9025:10004:10400:10848:10967:11026:11232:11658:11854:11914:12043:12517:12519:12740:13069:13148:13230:13311:13357:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: cast84_81822bcb4ae10 X-Filterd-Recvd-Size: 2514 Message-ID: <1417626888.2902.13.camel@perches.com> Subject: Re: ALSA: ctxfi: Delete an unnecessary check before kfree() From: Joe Perches To: Takashi Iwai Cc: SF Markus Elfring , Jaroslav Kysela , alsa-devel@alsa-project.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall Date: Wed, 03 Dec 2014 09:14:48 -0800 In-Reply-To: References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <547E2612.6010304@users.sourceforge.net> <547EF64B.1080403@users.sourceforge.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 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 Wed, 2014-12-03 at 13:41 +0100, Takashi Iwai wrote: > At Wed, 03 Dec 2014 12:38:51 +0100, > SF Markus Elfring wrote: > > > > >> Deletion of an unnecessary check before the function call "kfree" > > >> One function call less in get_daio_rsc() after error detection > > > > > > In these cases, the changes aren't so straightforward, and they don't > > > improve the readability. > > > > How do you prefer to improve the affected source code here? > > Don't touch then. There are no bugs to fix there. Takashi, what did you think of this? https://lkml.org/lkml/2014/12/2/771 Just unnecessary?