From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932537AbcA2Bdt (ORCPT ); Thu, 28 Jan 2016 20:33:49 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:33549 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755271AbcA2BYF (ORCPT ); Thu, 28 Jan 2016 20:24:05 -0500 From: Kamal Mostafa To: linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel-team@lists.ubuntu.com Cc: Moni Shoua , Doug Ledford , Kamal Mostafa Subject: [PATCH 3.19.y-ckt 181/210] net/mlx4: Remove unused macro Date: Thu, 28 Jan 2016 17:18:39 -0800 Message-Id: <1454030348-17736-182-git-send-email-kamal@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454030348-17736-1-git-send-email-kamal@canonical.com> References: <1454030348-17736-1-git-send-email-kamal@canonical.com> X-Extended-Stable: 3.19 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.19.8-ckt14 -stable review patch. If anyone has any objections, please let me know. ---8<------------------------------------------------------------ From: Moni Shoua 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 Signed-off-by: Doug Ledford Signed-off-by: Kamal Mostafa --- 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 5f3a9aa..fcab8fb5 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -876,10 +876,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) || \ -- 1.9.1