Skip to content

Commit c33bab6

Browse files
Hernán Gonzalezjgunthorpe
authored andcommitted
IB/rxe: Remove unused variable (char *rxe_qp_state_name[])
Note: This is compile only tested as I have no access to the hw. This variable was not used anywhere in the code. Removing it saves 24 bytes. add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-24 (-24) Function old new delta rxe_qp_state_name 24 - -24 Total: Before=3348732, After=3348708, chg -0.00% Signed-off-by: Hernán Gonzalez <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7f566a9 commit c33bab6

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

drivers/infiniband/sw/rxe/rxe_qp.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@
4040
#include "rxe_queue.h"
4141
#include "rxe_task.h"
4242

43-
char *rxe_qp_state_name[] = {
44-
[QP_STATE_RESET] = "RESET",
45-
[QP_STATE_INIT] = "INIT",
46-
[QP_STATE_READY] = "READY",
47-
[QP_STATE_DRAIN] = "DRAIN",
48-
[QP_STATE_DRAINED] = "DRAINED",
49-
[QP_STATE_ERROR] = "ERROR",
50-
};
51-
5243
static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap,
5344
int has_srq)
5445
{

drivers/infiniband/sw/rxe/rxe_verbs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ enum rxe_qp_state {
139139
QP_STATE_ERROR
140140
};
141141

142-
extern char *rxe_qp_state_name[];
143-
144142
struct rxe_req_info {
145143
enum rxe_qp_state state;
146144
int wqe_index;

0 commit comments

Comments
 (0)