Skip to content

Commit 4f1d583

Browse files
Hernán Gonzalezjgunthorpe
authored andcommitted
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: Hernán Gonzalez <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7da09af commit 4f1d583

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

drivers/infiniband/hw/qib/qib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ enum qib_sdma_events {
473473
};
474474

475475
extern char *qib_sdma_state_names[];
476-
extern char *qib_sdma_event_names[];
477476

478477
struct sdma_set_state_action {
479478
unsigned op_enable:1;

drivers/infiniband/hw/qib/qib_sdma.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,6 @@ char *qib_sdma_state_names[] = {
6464
[qib_sdma_state_s99_running] = "s99_Running",
6565
};
6666

67-
char *qib_sdma_event_names[] = {
68-
[qib_sdma_event_e00_go_hw_down] = "e00_GoHwDown",
69-
[qib_sdma_event_e10_go_hw_start] = "e10_GoHwStart",
70-
[qib_sdma_event_e20_hw_started] = "e20_HwStarted",
71-
[qib_sdma_event_e30_go_running] = "e30_GoRunning",
72-
[qib_sdma_event_e40_sw_cleaned] = "e40_SwCleaned",
73-
[qib_sdma_event_e50_hw_cleaned] = "e50_HwCleaned",
74-
[qib_sdma_event_e60_hw_halted] = "e60_HwHalted",
75-
[qib_sdma_event_e70_go_idle] = "e70_GoIdle",
76-
[qib_sdma_event_e7220_err_halted] = "e7220_ErrHalted",
77-
[qib_sdma_event_e7322_err_halted] = "e7322_ErrHalted",
78-
[qib_sdma_event_e90_timer_tick] = "e90_TimerTick",
79-
};
80-
8167
/* declare all statics here rather than keep sorting */
8268
static int alloc_sdma(struct qib_pportdata *);
8369
static void sdma_complete(struct kref *);

0 commit comments

Comments
 (0)