Skip to content

Commit a063923

Browse files
Amit Cohenkuba-moo
authored andcommitted
mlxsw: pci: Make style change in mlxsw_pci_cq_tasklet()
This function will be broken into several functions later. As preparation, reorder variables to reverse xmas tree. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/7170a8f4429ecb5a539b0374c621697778ff8363.1712062203.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 2c20086 commit a063923

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+2
-2
lines changed

drivers/net/ethernet/mellanox/mlxsw/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,9 @@ static void mlxsw_pci_cq_tasklet(struct tasklet_struct *t)
662662
{
663663
struct mlxsw_pci_queue *q = from_tasklet(q, t, tasklet);
664664
struct mlxsw_pci *mlxsw_pci = q->pci;
665-
char *cqe;
666-
int items = 0;
667665
int credits = q->count >> 1;
666+
int items = 0;
667+
char *cqe;
668668

669669
while ((cqe = mlxsw_pci_cq_sw_cqe_get(q))) {
670670
u16 wqe_counter = mlxsw_pci_cqe_wqe_counter_get(cqe);

0 commit comments

Comments
 (0)