Thread (2 messages) 2 messages, 2 authors, 2021-12-14

Re: [PATCH] phy: rockchip-inno-usb2: remove redundant assignment to variable delay

flat view

From: Vinod Koul <vkoul@kernel.org>
Date: 2021-12-14 09:15:26
Also in: kernel-janitors, linux-arm-kernel, linux-rockchip, lkml

On 11-12-21, 18:00, Colin Ian King wrote:
Variable delay is being assigned to zero and the code falls through to
the next case in a switch statement that returns out of the function.
The variable is never read in this scenario and so the assignment is
redundant and can be removed.

Cleans up scan-build static analysis warning:
drivers/phy/rockchip/phy-rockchip-inno-usb2.c:753:3: warning: Value
stored to 'delay' is never read [deadcode.DeadStores]
Applied, thanks

-- 
~Vinod

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