Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp724033ybp; Fri, 11 Oct 2019 03:23:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKGMmYbNEqut9/xX8UwyLS0V0x6IoTQH27fa/TmRnVNJFayqcULhB43FsebKfoiAF7JOZA X-Received: by 2002:a17:906:6a43:: with SMTP id n3mr12793272ejs.292.1570789397074; Fri, 11 Oct 2019 03:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570789397; cv=none; d=google.com; s=arc-20160816; b=znBHrly5HMr7BUwckbOYY32FYazZHIJBbNjr3vFVMd4Df2yCXgQRfZeWHOEAfqQPRd 52LWcn2BK1hVBDfDrl8ClrHhQyHZWspVy3lVASKjIi8MXJDL8PWvDVAwxQy+H//0vGze K2o91LecVRI8XqqQ3VoSj99opy200G7qeUpYBWvap5XZndUrgAv9BhgfS9q62mffQaNO lT0ItUnn0zaHroqSB8begjzvyPe0yew+tnUALt6D4RJXpBMv3jVuNC+D+9vf5MHqhfP8 dAeAAp8AkF2Y0VB5mUVvmcQ7nSqSVt2qsMxaGQ14lueat5E95toyluIecJDi08WtkUyK 80hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qti+5pZBdvQNuWk/xly3sdA3/A5zKsS2T8r+qwx9wyE=; b=gINP/fealzzmyua00B+WnFqfnEdDYovxK+sr+laKJZkBdQaehS9+I9DI0qCe3ZiRMa p9fbS/M2ItFmGqSfeXHTpBM0BhLbhrU/MR2p/M0Khb6BsWQhsMN8mbnyDb8YF20FK5Zx WCeKEV/nbx8nY2NU1729y+W7CrJY+qGps8CvBJ2f8dD3UABO2c8kwuBPu6swgQMqpNiF zmK1iucqfxHPFSoBeVZb79ie/4e4Yhc97FTePpMHC4xdGxxtC6CZR9Hhkjl3AX9yvsGC 4WYThATqWsFQFWHXtEEi/e0Rqed3Rwy9z5GNy9GWW0QYZNqxCnNCVaMblnvwMOqGm7pq dAhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ofgUsQR6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26si5278729edb.258.2019.10.11.03.22.53; Fri, 11 Oct 2019 03:23:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ofgUsQR6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726357AbfJKKVF (ORCPT + 99 others); Fri, 11 Oct 2019 06:21:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59936 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfJKKVF (ORCPT ); Fri, 11 Oct 2019 06:21:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qti+5pZBdvQNuWk/xly3sdA3/A5zKsS2T8r+qwx9wyE=; b=ofgUsQR69ol2W/cQ6XmPzk6aE WUDBGY/xe93HRgE1/2DPR2PUDwE/plCoaXA9Odk/VQ1C7NYPJ/TaYWappQPH8b1WIAqEtRogv8o7j JS2FzPM6hCOFZwBAoqKiepoKlWimQzctydkeoPeAtzinh88vPku4iNYHtwHEBw76aQIQ2pyXXKRbT 5V6AsyOd6VNsvJvrwN2ydQmubzLxZsP2C6Edj5kPvLH0LcnGrbBBKbABXR4XljlqdkrkXbWAjJUgq LuSk8HA5ML0yJd/e3BiF2zEGNT44qGTo4BTYaeR2ErpwenTEUzUkFs/mFm0ZKQN2Gm0HuWk0C7l+y gNepZ9VGQ==; Received: from 177.17.141.107.dynamic.adsl.gvt.net.br ([177.17.141.107] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIs2g-0004pr-4f; Fri, 11 Oct 2019 10:21:02 +0000 Date: Fri, 11 Oct 2019 07:20:57 -0300 From: Mauro Carvalho Chehab To: Joe Perches Cc: Robert Richter , Borislav Petkov , Tony Luck , James Morse , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/19] EDAC, mc: Reduce indentation level in edac_mc_handle_error() Message-ID: <20191011071920.3fb8c45c@coco.lan> In-Reply-To: <19dc4500bbfbb9d09f9730764a2b59353534358d.camel@perches.com> References: <20191010202418.25098-1-rrichter@marvell.com> <20191010202418.25098-6-rrichter@marvell.com> <19dc4500bbfbb9d09f9730764a2b59353534358d.camel@perches.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 10 Oct 2019 15:10:53 -0700 Joe Perches escreveu: > On Thu, 2019-10-10 at 20:25 +0000, Robert Richter wrote: > > Reduce the indentation level in edac_mc_handle_error() a bit by using > > continue. No functional changes. > > Seems fine, but trivially below: > > > diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c > [] > > @@ -1171,37 +1171,38 @@ void edac_mc_handle_error(const enum hw_event_mc_err_type type, > [] > > + strcpy(p, dimm->label); > > + p += strlen(p); > > + *p = '\0'; > > This *p = '\0' is unnecessary as the strcpy already did that. True, but better to put it on a separate patch, as it makes easier to review if you don't mix code de-indent with changes. Also, maybe there are other occurrences of this pattern. Thanks, Mauro