Skip to content

Commit 87a73aa

Browse files
committed
Fix style issue in switchtec_ntb_part_link_speed
1 parent fcad01b commit 87a73aa

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ntb_hw_switchtec.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -456,17 +456,19 @@ static void switchtec_ntb_part_link_speed(struct switchtec_ntb *sndev,
456456
enum ntb_width *width)
457457
{
458458
struct switchtec_dev *stdev = sndev->stdev;
459+
u32 pff;
460+
u32 linksta;
459461

460-
u32 pff = ioread32(&stdev->mmio_part_cfg_all[partition].vep_pff_inst_id);
461-
if(pff == 0xFFFFFFFF)
462-
{
462+
pff = ioread32(&stdev->mmio_part_cfg_all[partition].vep_pff_inst_id);
463+
if (pff == 0xFFFFFFFF) {
463464
dev_warn(&sndev->stdev->dev,
464-
"ntb_part_link_speed - invalid pff, setting speed/width to 0");
465-
*speed=0;
466-
*width=0;
465+
"Invalid pff, setting speed/width to 0");
466+
*speed = 0;
467+
*width = 0;
467468
return;
468469
}
469-
u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]);
470+
471+
linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]);
470472

471473
if (speed)
472474
*speed = (linksta >> 16) & 0xF;

0 commit comments

Comments
 (0)