usb: phy: remove redundant store to variable var after & operation
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/usb/phy/phy-keystone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/phy/phy-keystone.c +1 -1
@@ -59,7 +59,7 @@ static void keystone_usbphy_shutdown(struct usb_phy *phy) val =keystone_usbphy_readl (k_phy->phy_ctrl,USB_PHY_CTL_CLOCK );keystone_usbphy_writel (k_phy->phy_ctrl,USB_PHY_CTL_CLOCK , - val &= ~PHY_REF_SSP_EN ); + val & ~PHY_REF_SSP_EN ); }static int keystone_usbphy_probe (struct platform_device *pdev)
Signature · 1 line
2.35.3