PCI: dwc: Simplify the return value of PTM debugfs functions returning bool
authorHans Zhang <18255117159@163.com>
Thu, 12 Jun 2025 16:12:26 +0000 (00:12 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 25 Jun 2025 21:56:08 +0000 (15:56 -0600)
commit032f05be51ab4a1d67d08a8083ec16dd934d255e
tree323b88d25d33a6a95d29346ff623ece28c6e5c0a
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI: dwc: Simplify the return value of PTM debugfs functions returning bool

Replace redundant ternary conditional expressions with direct boolean
returns in PTM debugfs functions. Specifically change this pattern:

    return (condition) ? true : false;

to the simpler:

    return condition;

Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: subject rewording]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20250612161226.950937-1-18255117159@163.com
drivers/pci/controller/dwc/pcie-designware-debugfs.c