net/mlx5e: Properly indent within conditional statements

To fix these checkpatch complaints:

WARNING: suspect code indent for conditional statements (8, 24)
+       if (eth_proto & (MLX5E_PROT_MASK(MLX5E_10GBASE_SR)
[...]
+                       return PORT_FIBRE;

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
Or Gerlitz 2017-07-11 15:36:11 +03:00 committed by Saeed Mahameed
parent ad5b39a95c
commit 61bf212565

View File

@ -987,24 +987,27 @@ static u8 get_connector_port(u32 eth_proto, u8 connector_type)
if (connector_type && connector_type < MLX5E_CONNECTOR_TYPE_NUMBER) if (connector_type && connector_type < MLX5E_CONNECTOR_TYPE_NUMBER)
return ptys2connector_type[connector_type]; return ptys2connector_type[connector_type];
if (eth_proto & (MLX5E_PROT_MASK(MLX5E_10GBASE_SR) if (eth_proto &
| MLX5E_PROT_MASK(MLX5E_40GBASE_SR4) (MLX5E_PROT_MASK(MLX5E_10GBASE_SR) |
| MLX5E_PROT_MASK(MLX5E_100GBASE_SR4) MLX5E_PROT_MASK(MLX5E_40GBASE_SR4) |
| MLX5E_PROT_MASK(MLX5E_1000BASE_CX_SGMII))) { MLX5E_PROT_MASK(MLX5E_100GBASE_SR4) |
return PORT_FIBRE; MLX5E_PROT_MASK(MLX5E_1000BASE_CX_SGMII))) {
return PORT_FIBRE;
} }
if (eth_proto & (MLX5E_PROT_MASK(MLX5E_40GBASE_CR4) if (eth_proto &
| MLX5E_PROT_MASK(MLX5E_10GBASE_CR) (MLX5E_PROT_MASK(MLX5E_40GBASE_CR4) |
| MLX5E_PROT_MASK(MLX5E_100GBASE_CR4))) { MLX5E_PROT_MASK(MLX5E_10GBASE_CR) |
return PORT_DA; MLX5E_PROT_MASK(MLX5E_100GBASE_CR4))) {
return PORT_DA;
} }
if (eth_proto & (MLX5E_PROT_MASK(MLX5E_10GBASE_KX4) if (eth_proto &
| MLX5E_PROT_MASK(MLX5E_10GBASE_KR) (MLX5E_PROT_MASK(MLX5E_10GBASE_KX4) |
| MLX5E_PROT_MASK(MLX5E_40GBASE_KR4) MLX5E_PROT_MASK(MLX5E_10GBASE_KR) |
| MLX5E_PROT_MASK(MLX5E_100GBASE_KR4))) { MLX5E_PROT_MASK(MLX5E_40GBASE_KR4) |
return PORT_NONE; MLX5E_PROT_MASK(MLX5E_100GBASE_KR4))) {
return PORT_NONE;
} }
return PORT_OTHER; return PORT_OTHER;