linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] infiniband: ulp: Remove unnecessary struct declaration
@ 2021-04-15  9:21 Wan Jiabing
  2021-04-15  9:47 ` Christoph Lameter
  2021-04-20 19:09 ` Jason Gunthorpe
  0 siblings, 2 replies; 3+ messages in thread
From: Wan Jiabing @ 2021-04-15  9:21 UTC (permalink / raw)
  To: Doug Ledford, Jason Gunthorpe, Kamal Heib, Alaa Hleihel,
	Wan Jiabing, Valentine Fatiev, Christoph Lameter, linux-rdma,
	linux-kernel
  Cc: kael_w

struct ipoib_cm_tx is defined at 245th line.
And the definition is independent on the MACRO.
The declaration here is unnecessary. Remove it.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 drivers/infiniband/ulp/ipoib/ipoib.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index 179ff1d068e5..d255aa69ba6d 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -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)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-20 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  9:21 [PATCH] infiniband: ulp: Remove unnecessary struct declaration Wan Jiabing
2021-04-15  9:47 ` Christoph Lameter
2021-04-20 19:09 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).