Re: [PATCH][next] USB: serial: oti6858: Remove redundant assignment to variable divisor

From: Johan Hovold
Date: Mon Mar 04 2024 - 08:47:01 EST


On Wed, Feb 07, 2024 at 10:18:33AM +0000, Colin Ian King wrote:
> The variable divisor is being assigned a value that is not being
> read afterward, it is being re-assigned later in both paths of an if
> statement. The assignment is redundant and can be removed.
>
> Cleans up clang scan warning:
> drivers/usb/serial/oti6858.c:412:2: warning: Value stored to 'divisor'
> is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Applied, thanks.

Johan