PCI: Fix coding style in pci_sort_bf_cmp()
PATCH 1/1 PCI: Fix coding style in pci_sort_bf_cmp()
Split single-line if/else statements with trailing return into separate lines
Signed-off-by Jiwon Kang <[email protected]>
--- drivers/pci/probe.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/pci/probe.c +12 -6
@@ -3527,14 +3527,20 @@ static int __init pci_sort_bf_cmp(const struct device *d_a,const struct pci_dev *a =to_pci_dev (d_a);const struct pci_dev *b =to_pci_dev (d_b); -if (pci_domain_nr (a->bus) <pci_domain_nr (b->bus))return -1 ; -else if (pci_domain_nr (a->bus) >pci_domain_nr (b->bus))return 1 ; +if (pci_domain_nr (a->bus) <pci_domain_nr (b->bus)) +return -1 ; +else if (pci_domain_nr (a->bus) >pci_domain_nr (b->bus)) +return 1 ; -if (a->bus->number < b->bus->number)return -1 ; -else if (a->bus->number > b->bus->number)return 1 ; +if (a->bus->number < b->bus->number) +return -1 ; +else if (a->bus->number > b->bus->number) +return 1 ; -if (a->devfn < b->devfn)return -1 ; -else if (a->devfn > b->devfn)return 1 ; +if (a->devfn < b->devfn) +return -1 ; +else if (a->devfn > b->devfn) +return 1 ;return 0 ; }
Signature · 1 line
2.34.1
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 4 lines
Split single-line if/else statements with trailing return into separate lines
Signed-off-by Jiwon Kang <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 4 lines · Jiwon Kang
Split single-line if/else statements with trailing return into separate lines
Signed-off-by Jiwon Kang <[email protected]>
Reviewed-by Manivannan Sadhasivam <[email protected]>
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்