Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942012AbcJYV3T (ORCPT ); Tue, 25 Oct 2016 17:29:19 -0400 Received: from smtprelay0024.hostedemail.com ([216.40.44.24]:34352 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752762AbcJYV3S (ORCPT ); Tue, 25 Oct 2016 17:29:18 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3866:3867:3868:3872:3874:4250:4321:5007:6120:7514:7576:9010:10004:10400:10848:11026:11232:11658:11914:12043:12048:12296:12438:12740:12760:13069:13095:13311:13357:13439:14181:14659:14721:21080:21433:30045:30054:30079:30091,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,LFtime:2,LUA_SUMMARY:none X-HE-Tag: flag25_8ae149461e518 X-Filterd-Recvd-Size: 1681 Message-ID: <1477430953.1998.19.camel@perches.com> Subject: Re: [RFC PATCH 01/13] of: Remove comments that state the obvious From: Joe Perches To: frowand.list@gmail.com, Rob Herring , pantelis.antoniou@konsulko.com, Pantelis Antoniou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 25 Oct 2016 14:29:13 -0700 In-Reply-To: <1477429146-27039-2-git-send-email-frowand.list@gmail.com> References: <1477429146-27039-1-git-send-email-frowand.list@gmail.com> <1477429146-27039-2-git-send-email-frowand.list@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 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 Content-Length: 712 Lines: 22 On Tue, 2016-10-25 at 13:58 -0700, frowand.list@gmail.com wrote: > From: Frank Rowand > > Remove comments that state the obvious, to reduce clutter Some of these removals might be overly aggressive. > diff --git a/drivers/of/resolver.c b/drivers/of/resolver.c [] > @@ -125,7 +114,6 @@ static int __of_adjust_phandle_ref(struct device_node *node, > int offset, propcurlen; > int err = 0; > > - /* make a copy */ > propval = kmalloc(rprop->length, GFP_KERNEL); > if (!propval) { > pr_err("%s: Could not copy value of '%s'\n",ld This kmalloc/memcpy could use kmemdup instead. It doesn't really need the pr_err either as kmalloc and/or kmemdup get a generic OOM message.