Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3280740pxu; Tue, 8 Dec 2020 08:04:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYyEpfvpOnTlTbV2qCYe9Y3gRIDS2gSKYpF86yIgjoHhmRWZCHMLwIDDRJVGxySrErW2CW X-Received: by 2002:a05:6402:142f:: with SMTP id c15mr25417224edx.33.1607443467788; Tue, 08 Dec 2020 08:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607443467; cv=none; d=google.com; s=arc-20160816; b=AZQAAQg/DQMGx6z9iPg448YzJ5cK+yV1aXZ92A4XMymrpPFXbeED92Tiyqc5LZKQ/3 9LpD8Q0+89U60qQPKDBwPPXLnkqyiNmbDTlEhP3mWnebmX0CW+RXgJoZyQyGzWOXemBX eYa9u5rUhE+d5Q5Ynb4KcZDB2RRI+MIHPYLPayVo06Lz+zT+L8nnQsUvlWPwG3iwcWsL sjD2uBGeSZF1I/w953mXswUxqfNvIRXweLRGCd7yS1FugHKERRE5Naujfec3Zho5sKpR oQaBPNFk1NiBJOh01hzy+3wmZOji+B86voLkmuazBDOJFfhZ2TcgQSydMJgy6diIT+3w 8QDA== 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=iEt8ZrIXTme7sphbzz4VS0xnGTSo4prvT/46s4rgpQI=; b=tY3hl0h+6zQGN/HIhnQSF2SfW03hxuc/ddQ6zZ0IT0rZ2Mspu57LuIZEc/jfZp/wjs S+j+gg8z/YQWSkLCK4K33GGerGeM0AG6n9kr3b3567TRH/jtp97s0Eyc8xyW2R6VNQDF Qgm2euyj/6uylWP7mu/1a2oiOHwQz+Upx/CsT1a6KH+eIOP/3uUfqRpBcq5o+7/Ijo2N rMLYT6iLCa7fkvNmV2+7JDid/bSJUQP7SXy6cNvPh5wl41rAhZNviWuh685TbQC7GAl7 5jSeVmRBQ3jgC0KktHTGaWRpriuDvjHmVWXRW4KFO0OEYxn/bflZm6CenkwkTnLAa9gQ /w5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UgbnsxKS; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si1402215ejx.605.2020.12.08.08.04.02; Tue, 08 Dec 2020 08:04:27 -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=@suse.com header.s=susede1 header.b=UgbnsxKS; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730216AbgLHQBT (ORCPT + 99 others); Tue, 8 Dec 2020 11:01:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:46064 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729948AbgLHQBT (ORCPT ); Tue, 8 Dec 2020 11:01:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1607443232; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iEt8ZrIXTme7sphbzz4VS0xnGTSo4prvT/46s4rgpQI=; b=UgbnsxKScw4FVDMb4LgMv7MoyeD/QRm9yBCjN2XlNITHuzhL0WWCuU/aWhIQqeMXfsAlt6 h6+QGOVBG+7ePU+QKgKw1KHY6X1jDrh5d7KN36LUoVcRAE8wvyZdrUFHpQn7G0yg4+ykZf dw+fExTVDJIesgEsgbePu6aR8TRQtqg= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 75023AD6B; Tue, 8 Dec 2020 16:00:32 +0000 (UTC) Date: Tue, 8 Dec 2020 17:00:31 +0100 From: Petr Mladek To: Lukas Bulwahn Cc: 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: <20201130124915.7573-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2020-11-30 13:49:15, Lukas Bulwahn wrote: > Commit 849f3127bb46 ("switch /dev/kmsg to ->write_iter()") refactored > devkmsg_write() and left over a dead assignment on the variable 'len'. > > Hence, make clang-analyzer warns: > > kernel/printk/printk.c:744:4: warning: Value stored to 'len' is never read > [clang-analyzer-deadcode.DeadStores] > len -= endp - line; > ^ > > Simply remove this obsolete dead assignment here. > > Signed-off-by: Lukas Bulwahn The patch is committed in printk/linux.git, branch for-5.11. Best Regards, Petr