]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: remove redundant store to variable var after & operation
authorColin Ian King <colin.i.king@gmail.com>
Fri, 15 Jul 2022 22:56:57 +0000 (23:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2022 12:24:50 +0000 (14:24 +0200)
commitade994254d89431561c9e0427574f76e0adfc473
tree422bdb4da35808324bbcb56d7e8c7d9a3239771d
parent54423c6c1cba1e088e34a90ae938c9f212bb58e8
usb: phy: remove redundant store to variable var after & operation

There is no need to store the result of the & operation back to the
variable var. The store is redundant, replace &= with just &.

Cleans up clang scan warning:
drivers/usb/phy/phy-keystone.c:62:5: warning: Although the value stored to
'val' is used in the enclosing expression, the value is never actually read
from 'val' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220715225657.353828-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-keystone.c