net/mlx4_en: Code cleanups in tx path
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 09:35:09 +0000 (12:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 05:04:15 +0000 (01:04 -0400)
commit7dfa4b414d4eec8da56e44fb2b4aea3e549b092f
treeb8c45159b7ce66d1efefed6bb59d8ba257f2d547
parentf2600cf02b5b59aaee082c3485b7f01fc7f7b70c
net/mlx4_en: Code cleanups in tx path

- Remove unused variable ring->poll_cnt
- No need to set some fields if using blueflame
- Add missing const's
- Use unlikely
- Remove unneeded new line
- Make some comments more precise
- struct mlx4_bf @offset field reduced to unsigned int to save space

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
include/linux/mlx4/device.h