Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
ff50a91e b6de1f90

+1 -1
+1 -1
drivers/usb/phy/phy-keystone.c
··· 59 59 60 60 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); 61 61 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, 62 - val &= ~PHY_REF_SSP_EN); 62 + val & ~PHY_REF_SSP_EN); 63 63 } 64 64 65 65 static int keystone_usbphy_probe(struct platform_device *pdev)