[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <X8+jHx7sRlroUM8u@alley>
Date: Tue, 8 Dec 2020 17:00:31 +0100
From: Petr Mladek <pmladek@...e.com>
To: Lukas Bulwahn <lukas.bulwahn@...il.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
John Ogness <john.ogness@...utronix.de>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com,
kernel-janitors@...r.kernel.org, linux-safety@...ts.elisa.tech
Subject: Re: [PATCH] printk: remove obsolete dead assignment
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 <lukas.bulwahn@...il.com>
The patch is committed in printk/linux.git, branch for-5.11.
Best Regards,
Petr
Powered by blists - more mailing lists