IB/ipoib: Remove unnecessary struct declaration
authorWan Jiabing <wanjiabing@vivo.com>
Thu, 15 Apr 2021 09:21:16 +0000 (17:21 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 20 Apr 2021 12:34:39 +0000 (09:34 -0300)
struct ipoib_cm_tx is defined at 245th line.  And the definition is
independent on the MACRO.  The declaration here is unnecessary. Remove it.

Link: https://lore.kernel.org/r/20210415092124.27684-1-wanjiabing@vivo.com
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/ipoib/ipoib.h

index a45f21e01269d10b8caa2ad1388d898ebeb8446b..75cd44789661b4c113e3bd2e411fa5953b2be4ce 100644 (file)
@@ -677,8 +677,6 @@ void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc);
 void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc);
 #else
 
-struct ipoib_cm_tx;
-
 #define ipoib_max_conn_qp 0
 
 static inline int ipoib_cm_admin_enabled(struct net_device *dev)