Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1674114ybt; Mon, 15 Jun 2020 06:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx508v9Ir9rVgiAoOx1Mu1lnokaYUkyGH7jsiTpQuYBJMqXZ50HiH/mnIzEC9xNgnXhQBE7 X-Received: by 2002:a17:906:1184:: with SMTP id n4mr3558429eja.115.1592228394508; Mon, 15 Jun 2020 06:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592228394; cv=none; d=google.com; s=arc-20160816; b=ufs1LrEBDgfm4+7ZiucgyRTkA72qdQlD0uLR/6UuCEmK+eGHuxP60o6CJ+l0Vc8Ofj xW4BqtYplha/FoyBTDRbMIqSlc9dlBVkV2DjB82FmN0rBTzc/GsEGUshW9MX1LgF9EQO Pr0s92W7fKdc9pNEeJght9l1I1VkKdq7s5PM37jiOK7sjdDJYLJ9gwBxQhOMfZzeFIHC dP4yTa6v0MEObFNtqjVS2OpjqGLWms5PaTSw8hM6SSR7j5ungtKYKU/sUOZcTj04KiKP Xjl7/cGioh0axWqq29E8N3TETjxz0EHoj0bRUAmegkuFj7AM35mqS/eaHQVf1tR4iRJV jZ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3dAkWUpagXENuCqbk9zTT8t/N8wF9WK3Oc3noEJ8ZGY=; b=T6kEb6izvU6CDjlI2JU8ivP1rUTMcNT909hTi3jt5maGAYrwYznoICsoFvbV2oGaco uT7rmQR3Q4p2pCQ663CDtaqGpS4CaLMbdboXMQ/cFX4hA+fyHrnL9w7zUUU1hx3mD1uP MQUo067P+Panu9P+ESOF2Av88BboX2YqKSnmCcYQkT6tbQT2hj4kpttP7pyEXzA1V/9P KNwVulvx0zro+bWj2pxhhmhZqFnSd8IhSsKdHhs3MF/vKXBXxKascD0f73Au+Kxv7q8j H3E/MIvgYxIVTxZeC6wVnBDUtA3CYcE771TaYmsEqv/0WYtfWNPu1d++zPncnX3biC98 uyiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si9038041ejx.122.2020.06.15.06.39.31; Mon, 15 Jun 2020 06:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730446AbgFONhn (ORCPT + 99 others); Mon, 15 Jun 2020 09:37:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:41072 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730145AbgFONhm (ORCPT ); Mon, 15 Jun 2020 09:37:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E7D86AF31; Mon, 15 Jun 2020 13:37:44 +0000 (UTC) Date: Mon, 15 Jun 2020 15:37:40 +0200 From: Petr Mladek To: Jim Cromie Cc: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org, linux@rasmusvillemoes.dk Subject: Re: [PATCH v2 10/24] dyndbg: refactor parse_linerange out of ddebug_parse_query Message-ID: <20200615133740.GG31238@alley> References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-11-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200613155738.2249399-11-jim.cromie@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 2020-06-13 09:57:24, Jim Cromie wrote: > make the code-block reusable to later handle "file foo.c:101-200" etc. > This should be a 90%+ code-move, with minimal adaptations; reindent, > and scafolding. This sentence sounds like the author did some hidden microoptimizations and potentially broke the code. It made me nervous. But in fact, I do not see any real change except that the variable "first" does not longer need to be defined. So, it is just a code move. In this case, I usually write: This patch does not change the existing behavior. Best Regards, Petr