]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/mlx4: Remove unused macro
authorMoni Shoua <monis@mellanox.com>
Thu, 14 Jan 2016 15:48:07 +0000 (17:48 +0200)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 3 Feb 2016 00:05:21 +0000 (00:05 +0000)
commit f25bf1977f7a968e85fe8ab99252b8132c6cf8c4 upstream.

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>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
include/linux/mlx4/device.h

index 35b51e7af88659f5c1f4e11ff84bc80c3420f6a1..48ddabb261bcea780d1d8b5e2a382bf70954f966 100644 (file)
@@ -782,10 +782,6 @@ struct mlx4_init_port_param {
        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) || \