]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: host: xhci-tegra: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Tue, 2 Sep 2025 13:27:19 +0000 (21:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:23:49 +0000 (15:23 +0200)
commit1c208fd306f296a663d1edcced57bd8ef113eb74
treec77bc57e65ca7570834baf41831c1a94dbeb23b1
parent9d4552da0ae8f056313cc290c0f493f59c6f7eef
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>
drivers/usb/host/xhci-tegra.c