Commit c33bab62 authored by Hernán Gonzalez's avatar Hernán Gonzalez Committed by Jason Gunthorpe

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: default avatarHernán Gonzalez <hernan@vanguardiasur.com.ar>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 7f566a91
...@@ -40,15 +40,6 @@ ...@@ -40,15 +40,6 @@
#include "rxe_queue.h" #include "rxe_queue.h"
#include "rxe_task.h" #include "rxe_task.h"
char *rxe_qp_state_name[] = {
[QP_STATE_RESET] = "RESET",
[QP_STATE_INIT] = "INIT",
[QP_STATE_READY] = "READY",
[QP_STATE_DRAIN] = "DRAIN",
[QP_STATE_DRAINED] = "DRAINED",
[QP_STATE_ERROR] = "ERROR",
};
static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap, static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap,
int has_srq) int has_srq)
{ {
......
...@@ -139,8 +139,6 @@ enum rxe_qp_state { ...@@ -139,8 +139,6 @@ enum rxe_qp_state {
QP_STATE_ERROR QP_STATE_ERROR
}; };
extern char *rxe_qp_state_name[];
struct rxe_req_info { struct rxe_req_info {
enum rxe_qp_state state; enum rxe_qp_state state;
int wqe_index; int wqe_index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment