]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx4: Aesthetic code changes in multi_func_init
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:09 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:25:01 +0000 (16:25 -0400)
commit4abccb61578694372dc9b245afd41f55b5f1e546
treefa0d092985d2cefb25664f61499cadeba8e2a979
parentfccea6436a5bd16aed6f722efce13ec2c90427d7
net/mlx4: Aesthetic code changes in multi_func_init

Previous vf_oper and vf_admin code created very long lines, making it hard
to read the code. Added relevant in-struct pointers to reduce code
complexity and avoid code lines spread over 80 lines. Same logic is preserved.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c