mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
usb: host: xhci-tegra: Remove redundant ternary operators
For ternary operators in the form of "a ? true : false", if 'a' itself returns a boolean result, the ternary operator can be omitted. Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Link: https://lore.kernel.org/r/20250902132720.85504-1-liaoyuanhong@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9d4552da0a
commit
1c208fd306
|
|
@ -1482,7 +1482,7 @@ static int tegra_xhci_id_notify(struct notifier_block *nb,
|
|||
|
||||
tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy);
|
||||
|
||||
tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false;
|
||||
tegra->host_mode = usbphy->last_event == USB_EVENT_ID;
|
||||
|
||||
schedule_work(&tegra->id_work);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user