diff mbox

net/mlx4: Remove unused macro

Message ID 1452786487-30438-1-git-send-email-monis@mellanox.com (mailing list archive)
State Accepted
Headers show

Commit Message

Moni Shoua Jan. 14, 2016, 3:48 p.m. UTC
The macro mlx4_foreach_non_ib_transport_port() is not used anywhere. Remove it.

Fixes: aa9a2d51a3e7 ("mlx4: Activate RoCE/SRIOV")
Signed-off-by: Moni Shoua <monis@mellanox.com>
---
 include/linux/mlx4/device.h | 4 ----
 1 file changed, 4 deletions(-)

Comments

Doug Ledford Jan. 19, 2016, 8:58 p.m. UTC | #1
On 01/14/2016 10:48 AM, Moni Shoua wrote:
> The macro mlx4_foreach_non_ib_transport_port() is not used anywhere. Remove it.
> 
> Fixes: aa9a2d51a3e7 ("mlx4: Activate RoCE/SRIOV")
> Signed-off-by: Moni Shoua <monis@mellanox.com>
> ---
>  include/linux/mlx4/device.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
> index f70d210..6309ff1 100644
> --- a/include/linux/mlx4/device.h
> +++ b/include/linux/mlx4/device.h
> @@ -982,10 +982,6 @@ struct mlx4_mad_ifc {
>  	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	\
>  		if ((type) == (dev)->caps.port_mask[(port)])
>  
> -#define mlx4_foreach_non_ib_transport_port(port, dev)                     \
> -	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	  \
> -		if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB))
> -
>  #define mlx4_foreach_ib_transport_port(port, dev)                         \
>  	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	  \
>  		if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \
> 

Thanks, applied.
diff mbox

Patch

diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index f70d210..6309ff1 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -982,10 +982,6 @@  struct mlx4_mad_ifc {
 	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	\
 		if ((type) == (dev)->caps.port_mask[(port)])
 
-#define mlx4_foreach_non_ib_transport_port(port, dev)                     \
-	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	  \
-		if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB))
-
 #define mlx4_foreach_ib_transport_port(port, dev)                         \
 	for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++)	  \
 		if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \