Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp563909rdf; Tue, 21 Nov 2023 09:47:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJP4zsr68lkM7zhG6FhTIHOAaz5huoZ1eKIAIeVMnIuqfeiOtei53qXDy2R55XLOOT4+Ka X-Received: by 2002:a05:6a20:a283:b0:18a:db62:f1a4 with SMTP id a3-20020a056a20a28300b0018adb62f1a4mr3428383pzl.8.1700588876603; Tue, 21 Nov 2023 09:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700588876; cv=none; d=google.com; s=arc-20160816; b=HojkF2HhCa8dy4RXycbwr9eqfrpdjzsQI8hS6cpq5P3hPERs4NQ4DiS39L1cI1yQ98 8o7nxmrPH2ux0G29AJdRN1nZWjptU3/HySBANspzgqAbL+7a+fnsQAxYkWkZ8jI+FvGo nwzM5PJZezSU4MQFfrxTlM2NWNhzAAB7zRukobEayq2dvs6BrxKmDD3cL73pOMmomyly Ic2MH1G6kkcwTfeWkSjvCLyiA1p2damtxaOJMaxKlJHlwBV0xFRlNya9Cljkk9/MBOCL AMtdbou4dRZ0uFjtXGBcfq0EhelQNxN7cEoAwNvura9dndtBHGcCbCn86pUGq4jQJgVY pmQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GTbpm+rp6tMftUStFdiQEsAqCqUtgJmVMIVDldceZqw=; fh=n7QfawUo+0yAuhIV+SmsHZdsF/vTeCMbFJedezbA2k4=; b=hopR5v/EYVbD4lzyAk7IjJaNPCm8+WzzYjJ9/uWhmfFA+3TRArfJlLxS8I2I0Z4Eyb y88h96ofyFASfQIAbuyIW3ZfZgNFEJuaCPtYiBXDdSTS0+Ttto35mzg3hPqA/fy1ZnbQ CPEksCvdqQ/yid7Q3R9hS0xiCX8oZ/kdlu/CEmgyy2us8n+WSTtA8695n69IfcJ+duko 2mlj+wuiGt9c8JeLxiDFNaVuYWNKB7D4IQ3EqdcaHa+hHN6RwilZf5kKXJ5znL4aAbgU Tqjl7lVEld1zFe9KyU5XWy3AWFrjhftp/Z0OMzWKmF01rPGSPjChwTbjXFWazxKp1L+e QLrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PV+GKU4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bw26-20020a056a02049a00b0059cc8d682dfsi11789070pgb.814.2023.11.21.09.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 09:47:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PV+GKU4a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 627BD804C201; Tue, 21 Nov 2023 09:47:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231305AbjKURrm (ORCPT + 99 others); Tue, 21 Nov 2023 12:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjKURrk (ORCPT ); Tue, 21 Nov 2023 12:47:40 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87FE18C for ; Tue, 21 Nov 2023 09:47:35 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6cb55001124so8015b3a.0 for ; Tue, 21 Nov 2023 09:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700588855; x=1701193655; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GTbpm+rp6tMftUStFdiQEsAqCqUtgJmVMIVDldceZqw=; b=PV+GKU4aUhTQV3tEWdClWY1Hq/D5LCUwl5f6TBkRuXjZMyjgH/y2Ou1ehdfJGBzPli X+XF+BOlzTQOoB7MCN0yss4Uo1/8yiGoUSZLeExsFh9KerXniYZptvTbwbRf0ECM+A+l 1+mfCtRY5Qgjj1v0+NCWEXqtor8tlrVoA9f65WaC2EtnLsK7YQsu5ZLdVNv5ikvnHmwg T5hyQQlrydf7N3dwWA24DdHYavSUsftpkF+Q2TL0BRX0SOXyBmUGT+5KiJ65+I546JX2 e4lHfDa9I9cojtD3XZZPgh0VMIdGXk32z9snTGasI6/EQmjJ4fxQsvfdkALbWXfEnTYo 8nKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700588855; x=1701193655; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GTbpm+rp6tMftUStFdiQEsAqCqUtgJmVMIVDldceZqw=; b=iAN5OBt+2f8z+1pz+gmV5PVAGlAdigI5fGir0v7M1XsHuzy+dPkJ3ITkhJg0UYvv3U G/VNQ/tlQ0EkpZgxIQSImlOIyovMLhHT7cOgVrr+y6qI/SXYNkkUj+d0ugy1dj1gamvr urg7KUo1RQRM7BzcUp7svrJVrHK7jh2y7ADmQLMDBnp+vHRH3yVonOYA0ybge3+p1Cx6 ifxp6xH1Z84Wd+kZxgNEgJsLnmCUaLLS4tVwctd1DMDtte+ooFIM0Hh80x/rAjpEI++z Qg0k2LjsfWBbofm9hgpkwL1Qoupx8ZI6dmoOrw3wrR1K0F7wQLgTj2Erp92O6wdvqGwa /cAA== X-Gm-Message-State: AOJu0YwIFlvlwBviMDbtGTNEVELD5TGE7EZiNI5DDuxHYEhCYR0Zd7Wj 3w68h+YG88D1iNiDkGBW5r9/N7XvUTMmZTFKx22+Y7mo X-Received: by 2002:a05:6a21:6da0:b0:187:4e8c:ac5c with SMTP id wl32-20020a056a216da000b001874e8cac5cmr89463pzb.1.1700588855173; Tue, 21 Nov 2023 09:47:35 -0800 (PST) Received: from [172.20.7.39] ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id b11-20020a056a000ccb00b006cb69ff0444sm5547127pfv.151.2023.11.21.09.47.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 09:47:34 -0800 (PST) Message-ID: Date: Tue, 21 Nov 2023 11:47:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 13/17] tty: srmcons: use 'buf' directly in srmcons_do_write() Content-Language: en-US To: "Jiri Slaby (SUSE)" , gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org References: <20231121092258.9334-1-jirislaby@kernel.org> <20231121092258.9334-14-jirislaby@kernel.org> From: Richard Henderson In-Reply-To: <20231121092258.9334-14-jirislaby@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 09:47:54 -0800 (PST) On 11/21/23 03:22, Jiri Slaby (SUSE) wrote: > There is no need to have a separate iterator ('cur') through 'buf' in > srmcons_do_write(). 'buf' can be used directly which simplifies the code > a bit. > > Signed-off-by: Jiri Slaby (SUSE) > Cc: Richard Henderson > Cc: Ivan Kokshaysky > Cc: Matt Turner > Cc: linux-alpha@vger.kernel.org > --- > arch/alpha/kernel/srmcons.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) Reviewed-by: Richard Henderson r~