infiniband: ulp: Remove unnecessary struct declaration
PATCH 1/1 infiniband: ulp: Remove unnecessary struct declaration
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 <[email protected]>
--- drivers/infiniband/ulp/ipoib/ipoib.h | 2 -- 1 file changed, 2 deletions(-)
drivers/infiniband/ulp/ipoib/ipoib.h +0 -2
@@ -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 0static inline int ipoib_cm_admin_enabled (struct net_device *dev)
Signature · 1 line
2.25.1
Quoted 3 lines · Wan Jiabing
struct
ipoib_cm_txis defined at 245th line.
And the definition is independent on the MACRO.
The declaration here is unnecessary. Remove it.
Correct.
Reviewed-by Christoph Lameter <[email protected]>
Quoted 9 lines · Wan Jiabing
struct
ipoib_cm_txis defined at 245th line. And the definition is independent on the MACRO. The declaration here is unnecessary. Remove it.Signed-off-by Wan Jiabing <[email protected]>Reviewed-by Christoph Lameter <[email protected]>--- drivers/infiniband/ulp/ipoib/ipoib.h | 2 -- 1 file changed, 2 deletions(-)
Applied to for-next, thanks
Jason