Commit 32a72bbd authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller

net: vxge: Fix some indentation issues

Some statements are not enough or too much indented.
Fix it to improve readalbility.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d18e4f68
...@@ -1530,7 +1530,7 @@ static int vxge_reset_vpath(struct vxgedev *vdev, int vp_id) ...@@ -1530,7 +1530,7 @@ static int vxge_reset_vpath(struct vxgedev *vdev, int vp_id)
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"vxge_hw_vpath_reset failed for" "vxge_hw_vpath_reset failed for"
"vpath:%d", vp_id); "vpath:%d", vp_id);
return status; return status;
} }
} else } else
return VXGE_HW_FAIL; return VXGE_HW_FAIL;
...@@ -1950,19 +1950,19 @@ static enum vxge_hw_status vxge_rth_configure(struct vxgedev *vdev) ...@@ -1950,19 +1950,19 @@ static enum vxge_hw_status vxge_rth_configure(struct vxgedev *vdev)
* for all VPATHs. The h/w only uses the lowest numbered VPATH * for all VPATHs. The h/w only uses the lowest numbered VPATH
* when steering frames. * when steering frames.
*/ */
for (index = 0; index < vdev->no_of_vpath; index++) { for (index = 0; index < vdev->no_of_vpath; index++) {
status = vxge_hw_vpath_rts_rth_set( status = vxge_hw_vpath_rts_rth_set(
vdev->vpaths[index].handle, vdev->vpaths[index].handle,
vdev->config.rth_algorithm, vdev->config.rth_algorithm,
&hash_types, &hash_types,
vdev->config.rth_bkt_sz); vdev->config.rth_bkt_sz);
if (status != VXGE_HW_OK) { if (status != VXGE_HW_OK) {
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"RTH configuration failed for vpath:%d", "RTH configuration failed for vpath:%d",
vdev->vpaths[index].device_id); vdev->vpaths[index].device_id);
return status; return status;
} }
} }
return status; return status;
} }
...@@ -1991,7 +1991,7 @@ static enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev) ...@@ -1991,7 +1991,7 @@ static enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev)
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"vxge_hw_vpath_reset failed for " "vxge_hw_vpath_reset failed for "
"vpath:%d", i); "vpath:%d", i);
return status; return status;
} }
} }
} }
...@@ -2474,32 +2474,31 @@ static int vxge_add_isr(struct vxgedev *vdev) ...@@ -2474,32 +2474,31 @@ static int vxge_add_isr(struct vxgedev *vdev)
switch (msix_idx) { switch (msix_idx) {
case 0: case 0:
snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN, snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN,
"%s:vxge:MSI-X %d - Tx - fn:%d vpath:%d", "%s:vxge:MSI-X %d - Tx - fn:%d vpath:%d",
vdev->ndev->name, vdev->ndev->name,
vdev->entries[intr_cnt].entry, vdev->entries[intr_cnt].entry,
pci_fun, vp_idx); pci_fun, vp_idx);
ret = request_irq( ret = request_irq(
vdev->entries[intr_cnt].vector, vdev->entries[intr_cnt].vector,
vxge_tx_msix_handle, 0, vxge_tx_msix_handle, 0,
vdev->desc[intr_cnt], vdev->desc[intr_cnt],
&vdev->vpaths[vp_idx].fifo); &vdev->vpaths[vp_idx].fifo);
vdev->vxge_entries[intr_cnt].arg = vdev->vxge_entries[intr_cnt].arg =
&vdev->vpaths[vp_idx].fifo; &vdev->vpaths[vp_idx].fifo;
irq_req = 1; irq_req = 1;
break; break;
case 1: case 1:
snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN, snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN,
"%s:vxge:MSI-X %d - Rx - fn:%d vpath:%d", "%s:vxge:MSI-X %d - Rx - fn:%d vpath:%d",
vdev->ndev->name, vdev->ndev->name,
vdev->entries[intr_cnt].entry, vdev->entries[intr_cnt].entry,
pci_fun, vp_idx); pci_fun, vp_idx);
ret = request_irq( ret = request_irq(
vdev->entries[intr_cnt].vector, vdev->entries[intr_cnt].vector,
vxge_rx_msix_napi_handle, vxge_rx_msix_napi_handle, 0,
0,
vdev->desc[intr_cnt], vdev->desc[intr_cnt],
&vdev->vpaths[vp_idx].ring); &vdev->vpaths[vp_idx].ring);
vdev->vxge_entries[intr_cnt].arg = vdev->vxge_entries[intr_cnt].arg =
&vdev->vpaths[vp_idx].ring; &vdev->vpaths[vp_idx].ring;
irq_req = 1; irq_req = 1;
break; break;
...@@ -2512,9 +2511,9 @@ static int vxge_add_isr(struct vxgedev *vdev) ...@@ -2512,9 +2511,9 @@ static int vxge_add_isr(struct vxgedev *vdev)
vxge_rem_msix_isr(vdev); vxge_rem_msix_isr(vdev);
vdev->config.intr_type = INTA; vdev->config.intr_type = INTA;
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"%s: Defaulting to INTA" "%s: Defaulting to INTA",
, vdev->ndev->name); vdev->ndev->name);
goto INTA_MODE; goto INTA_MODE;
} }
if (irq_req) { if (irq_req) {
...@@ -4505,8 +4504,8 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) ...@@ -4505,8 +4504,8 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
if (status != VXGE_HW_OK) { if (status != VXGE_HW_OK) {
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"Failed to initialize device (%d)", status); "Failed to initialize device (%d)", status);
ret = -EINVAL; ret = -EINVAL;
goto _exit3; goto _exit3;
} }
if (VXGE_FW_VER(ll_config->device_hw_info.fw_version.major, if (VXGE_FW_VER(ll_config->device_hw_info.fw_version.major,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment