Thread (3 messages) 3 messages, 3 authors, 2021-04-27

Re: [PATCH] serial: meson: remove redundant initialization of variable id

From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: 2021-04-27 18:31:51
Also in: kernel-janitors, linux-amlogic, linux-serial, lkml

On Mon, Apr 26, 2021 at 12:11 PM Colin King [off-list ref] wrote:
From: Colin Ian King <redacted>

The variable id being initialized with a value that is never read
and it is being updated later with a new value. The initialization is
redundant and can be removed. Since id is just being used in a for-loop
inside a local scope, move the declaration of id to that scope.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <redacted>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help