Commit 61bf2125 authored by Or Gerlitz's avatar Or Gerlitz Committed by Saeed Mahameed

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: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent ad5b39a9
...@@ -987,24 +987,27 @@ static u8 get_connector_port(u32 eth_proto, u8 connector_type) ...@@ -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;
......
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