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

IB/qib: Remove unused variable (char *qib_sdma_event_names[])

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 88
bytes.

add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-88 (-88)
Function                                     old     new   delta
qib_sdma_event_names                          88       -     -88
Total: Before=2874565, After=2874477, chg -0.00%
Signed-off-by: default avatarHernán Gonzalez <hernan@vanguardiasur.com.ar>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 7da09af9
...@@ -473,7 +473,6 @@ enum qib_sdma_events { ...@@ -473,7 +473,6 @@ enum qib_sdma_events {
}; };
extern char *qib_sdma_state_names[]; extern char *qib_sdma_state_names[];
extern char *qib_sdma_event_names[];
struct sdma_set_state_action { struct sdma_set_state_action {
unsigned op_enable:1; unsigned op_enable:1;
......
...@@ -64,20 +64,6 @@ char *qib_sdma_state_names[] = { ...@@ -64,20 +64,6 @@ char *qib_sdma_state_names[] = {
[qib_sdma_state_s99_running] = "s99_Running", [qib_sdma_state_s99_running] = "s99_Running",
}; };
char *qib_sdma_event_names[] = {
[qib_sdma_event_e00_go_hw_down] = "e00_GoHwDown",
[qib_sdma_event_e10_go_hw_start] = "e10_GoHwStart",
[qib_sdma_event_e20_hw_started] = "e20_HwStarted",
[qib_sdma_event_e30_go_running] = "e30_GoRunning",
[qib_sdma_event_e40_sw_cleaned] = "e40_SwCleaned",
[qib_sdma_event_e50_hw_cleaned] = "e50_HwCleaned",
[qib_sdma_event_e60_hw_halted] = "e60_HwHalted",
[qib_sdma_event_e70_go_idle] = "e70_GoIdle",
[qib_sdma_event_e7220_err_halted] = "e7220_ErrHalted",
[qib_sdma_event_e7322_err_halted] = "e7322_ErrHalted",
[qib_sdma_event_e90_timer_tick] = "e90_TimerTick",
};
/* declare all statics here rather than keep sorting */ /* declare all statics here rather than keep sorting */
static int alloc_sdma(struct qib_pportdata *); static int alloc_sdma(struct qib_pportdata *);
static void sdma_complete(struct kref *); static void sdma_complete(struct kref *);
......
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