Skip to content

Commit 8e63200

Browse files
mripardtiwai
authored andcommitted
ALSA: lx_core: Remove useless #if 0 .. #endif
The code contained in these sections are only dev_dbg calls, that are already removed whenever DEBUG isn't defined. Remove the redundant constructs. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 4899210 commit 8e63200

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sound/pci/lx6464es/lx_core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture,
515515
*r_needed += 1;
516516
}
517517

518-
#if 0
519518
dev_dbg(chip->card->dev,
520519
"CMD_08_ASK_BUFFERS: needed %d, freed %d\n",
521520
*r_needed, *r_freed);
@@ -526,7 +525,6 @@ int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture,
526525
chip->rmh.stat[i],
527526
chip->rmh.stat[i] & MASK_DATA_SIZE);
528527
}
529-
#endif
530528
}
531529

532530
spin_unlock_irqrestore(&chip->msg_lock, flags);
@@ -1191,7 +1189,6 @@ irqreturn_t lx_interrupt(int irq, void *dev_id)
11911189
if (irqsrc & MASK_SYS_STATUS_CMD_DONE)
11921190
goto exit;
11931191

1194-
#if 0
11951192
if (irqsrc & MASK_SYS_STATUS_EOBI)
11961193
dev_dbg(chip->card->dev, "interrupt: EOBI\n");
11971194

@@ -1203,7 +1200,6 @@ irqreturn_t lx_interrupt(int irq, void *dev_id)
12031200

12041201
if (irqsrc & MASK_SYS_STATUS_ORUN)
12051202
dev_dbg(chip->card->dev, "interrupt: ORUN\n");
1206-
#endif
12071203

12081204
if (async_pending) {
12091205
u64 notified_in_pipe_mask = 0;
@@ -1230,15 +1226,13 @@ irqreturn_t lx_interrupt(int irq, void *dev_id)
12301226
}
12311227

12321228
if (async_escmd) {
1233-
#if 0
12341229
/* backdoor for ethersound commands
12351230
*
12361231
* for now, we do not need this
12371232
*
12381233
* */
12391234

12401235
dev_dbg(chip->card->dev, "interrupt requests escmd handling\n");
1241-
#endif
12421236
}
12431237

12441238
exit:

0 commit comments

Comments
 (0)