There are a little ternary operators, the true or false judgement
of which is unnecessary in C language semantics. So remove it
to clean Code.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Sunil Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20230801112638.317149-1-ruanjinjie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
 
 
 static bool is_ptp_dev_cnf10kb(struct ptp *ptp)
 {
-       return (ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_B_PTP) ? true : false;
+       return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_B_PTP;
 }
 
 static bool is_ptp_dev_cn10k(struct ptp *ptp)
 {
-       return (ptp->pdev->device == PCI_DEVID_CN10K_PTP) ? true : false;
+       return ptp->pdev->device == PCI_DEVID_CN10K_PTP;
 }
 
 static bool cn10k_ptp_errata(struct ptp *ptp)
 
 #endif
        int txq;
 
-       qos_enabled = (netdev->real_num_tx_queues > pf->hw.tx_queues) ? true : false;
+       qos_enabled = netdev->real_num_tx_queues > pf->hw.tx_queues;
        if (unlikely(qos_enabled)) {
                /* This smp_load_acquire() pairs with smp_store_release() in
                 * otx2_qos_root_add() called from htb offload root creation