Skip to content

Commit eae3e19

Browse files
diandersDaniel Thompson
authored andcommitted
kgdboc: Remove useless #ifdef CONFIG_KGDB_SERIAL_CONSOLE in kgdboc
This file is only ever compiled if that config is on since the Makefile says: obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o Let's get rid of the useless #ifdef. Reported-by: Daniel Thompson <[email protected]> Signed-off-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20200507130644.v4.7.Icb528f03d0026d957e60f537aa711ada6fd219dc@changeid Signed-off-by: Daniel Thompson <[email protected]>
1 parent 3ca676e commit eae3e19

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/tty/serial/kgdboc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ static struct kgdb_io kgdboc_io_ops = {
380380
.post_exception = kgdboc_post_exp_handler,
381381
};
382382

383-
#ifdef CONFIG_KGDB_SERIAL_CONSOLE
384383
static int kgdboc_option_setup(char *opt)
385384
{
386385
if (!opt) {
@@ -409,7 +408,6 @@ static int __init kgdboc_early_init(char *opt)
409408
}
410409

411410
early_param("ekgdboc", kgdboc_early_init);
412-
#endif /* CONFIG_KGDB_SERIAL_CONSOLE */
413411

414412
module_init(init_kgdboc);
415413
module_exit(exit_kgdboc);

0 commit comments

Comments
 (0)