USB: serial: oti6858: remove redundant assignment to variable divisor
authorColin Ian King <colin.i.king@gmail.com>
Wed, 7 Feb 2024 10:18:33 +0000 (10:18 +0000)
committerJohan Hovold <johan@kernel.org>
Mon, 4 Mar 2024 13:37:52 +0000 (14:37 +0100)
commit524e2ebd3b959e9ee069caf960ead0d519c8bf17
tree7f43156f022fd0820f5ed069fbb784ba60782eec
parent46809c51565b83881aede6cdf3b0d25254966a41
USB: serial: oti6858: remove redundant assignment to variable divisor

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@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/oti6858.c