Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3669969pxu; Mon, 30 Nov 2020 07:58:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzevlMXDUpbgvw2EIka31v+TgrPEO8ymogxwaXKc982EIDlcv+iwjDfzqHXn9kvE4EHe2ny X-Received: by 2002:a50:cdc8:: with SMTP id h8mr22643755edj.37.1606751911022; Mon, 30 Nov 2020 07:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606751911; cv=none; d=google.com; s=arc-20160816; b=BdEd9AQ4MTZTVn/5lOBHorqnITObNIEg0RPLi1mf3HaE1azTWDlzI9E0cg1WmbRENm 0vroIlsIFzd5SMes/lF7WF5sMHkZwcLYyblxgoZL3i49mkFz7Su3j67JWMnkb9fxmcPb Oi1btiDmeUEg7QPIF5NSIqrL9Ek4Xax+m/ATcN7DJVKphsbCPaRV+qIxL3K1Wth4Fb+k TKIr7MzCgLZ5AnmuvEE9f9dS4Ze5S7F53pSp0ZW9Nx/gjwfecMZnLOXekOx1gB5JewZ0 GzY7hVTN3A3mdIQ8Ydm5Zp6CE2AUsAZXaMY99r2/jZCaXAyZmQNT4Ho7eceXvVteUSpU 92Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XL+gEtLKF5TbtWhyDLeu71fgcb40bHQjbGEt03J+KJQ=; b=0/wHOPTW5uwDfK0i6cssnUh1wrwCRrRlRrAtDHWO415GJo2ew51wEN2HV+HLTUh/QP 6QqMNL+QRlxzOJV3fMRNxLU1K++srSoDwzJQUQRtaS+1P8WQUF6wz5YE0zndUT446iGc fRf3bQu3Q1U66wHq/joWiIdG4/b5JZSqhTn3gtxTWTRb7BIY9dunoc5HtXPKqJQC2dG+ OkHM66uzbW/9myKMjqZKyVvOARGaxuYvrqErggw9FhH3KjBhLKYGr4ozUsFmxpcXvgXU ndXpmy8zaz+/RZp9rt911HX50pGnPY0RnBMWI9/WQJ6XtJQL2uKpYhhowBYB96sz+lhp TJYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mjqR2XRw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si10447071edi.178.2020.11.30.07.58.08; Mon, 30 Nov 2020 07:58:31 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mjqR2XRw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbgK3Px6 (ORCPT + 99 others); Mon, 30 Nov 2020 10:53:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgK3Px6 (ORCPT ); Mon, 30 Nov 2020 10:53:58 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C47C0613CF; Mon, 30 Nov 2020 07:53:17 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id x15so6709622pll.2; Mon, 30 Nov 2020 07:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XL+gEtLKF5TbtWhyDLeu71fgcb40bHQjbGEt03J+KJQ=; b=mjqR2XRw0sTw8mfSziT6pQr3iztcPuVSjvpyvfaKwfseqpGTxcvE79mhP820ksdGKc CY7d9iuh895rz38mvIN4uTna7isa9zaeZnUTas9Gd7bBr+TqLXiHm2n4nPmtZORYZyJ4 rjmeGklmItUURRQ2i3HbLKOEI4LhlUPa3Kh1bCRG1yfzxWQ8QjUbwz2xjZXWyaJcX0Km lM1Tt2RgzL4GJ3HOtLtXEERqksoyXfNNnrHsnt6GE3qVxTg3em8FQLzpu7O1FPM60YZy 4aIc6onqGeBo+aMF8eCPRsq8l8WY0bEwLo29umN09V7ZL46fR4g2+gRv5p+02WyPLYTd 7DdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XL+gEtLKF5TbtWhyDLeu71fgcb40bHQjbGEt03J+KJQ=; b=cXM7tT2I1r/nydfKGLGwJRJ9BWoefR7KiyThy1iaDJtMlpmDGDv+89INNc0Q/PgCpS 0hsnKy5ulq3E18E9IcqHHydoelwVInLq1sRXZ2YplDy/O0WE61IafOuYOwMpv81MvoOl jLTRztmKMurbasKqDwxJjeU0UHuFbEeaAKeY+xZ2lNwbDxfpYon1KyVE/gQTzrg2jLS4 ybdKf6fKdR9/kH1F57KEjolfwOlkddwuYw57LhuZ2wE98sOFM5kv7hUfg6a12s2Yjnx3 CnMheeu7ADzdm1fnSklQzqb53jTJWStA1EryWYpyHyzcwpiqbcRLyjhu1ciLuwlwwUxw pOLA== X-Gm-Message-State: AOAM533rvP/K0H8jPH+GbN/v+U4CYanHj5GlvYa+/BfwYpgfMIP3V33Y KLZq7DJApoFVdl+o4/DQ8Cg= X-Received: by 2002:a17:90a:4405:: with SMTP id s5mr26762160pjg.219.1606751597508; Mon, 30 Nov 2020 07:53:17 -0800 (PST) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id m11sm17625628pfa.24.2020.11.30.07.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 07:53:16 -0800 (PST) Date: Tue, 1 Dec 2020 00:53:14 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Lukas Bulwahn , Sergey Senozhatsky , Steven Rostedt , John Ogness , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-safety@lists.elisa.tech Subject: Re: [PATCH] printk: remove obsolete dead assignment Message-ID: References: <20201130124915.7573-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/11/30 16:37), Petr Mladek wrote: > On Mon 2020-11-30 13:49:15, Lukas Bulwahn wrote: [..] > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > > index f279d4fbd9dd..6e4e38b7cd91 100644 > > --- a/kernel/printk/printk.c > > +++ b/kernel/printk/printk.c > > @@ -741,7 +741,6 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from) > > if (LOG_FACILITY(u) != 0) > > facility = LOG_FACILITY(u); > > endp++; > > - len -= endp - line; > > line = endp; > > } > > } > > Yup, it was used to write the trailing '\0'. But it is done earlier > now. So, it is not longer needed. > > Reviewed-by: Petr Mladek > > Best Regards, > Petr > > PS: I'll give it few days just in case anyone else would want to > review it. I'll push it then unless anyone complains. FWIW, looks good to me Reviewed-by: Sergey Senozhatsky -ss