diff mbox series

[2/2] xen/tools: remove dead code

Message ID 20241220165837.937976-3-Ariel.Otilibili-Anieli@eurecom.fr (mailing list archive)
State New
Headers show
Series tools/libs,xen/tools: remove dead code | expand

Commit Message

Ariel Otilibili Dec. 20, 2024, 4:55 p.m. UTC
Default switch case exits directly; these instructions are never reached.

The file was taken from Linux; the copies have diverged a lot since:

```
$ diff -u xen/xen/tools/kconfig/expr.c linux/scripts/kconfig/expr.c | wc -l
984
```

Therefore the change is only applied locally.

Coverity-ID: 1458052
Fixes: 8c271b7584 ("build: import Kbuild/Kconfig from Linux 4.3")
Signed-off-by: Ariel Otilibili <Ariel.Otilibili-Anieli@eurecom.fr>
--
Cc: Doug Goldstein <cardoe@cardoe.com>
---
 xen/tools/kconfig/expr.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/xen/tools/kconfig/expr.c b/xen/tools/kconfig/expr.c
index 77ffff3a05..be1400cdaf 100644
--- a/xen/tools/kconfig/expr.c
+++ b/xen/tools/kconfig/expr.c
@@ -1125,8 +1125,6 @@  static int expr_compare_type(enum expr_type t1, enum expr_type t2)
 	default:
 		return -1;
 	}
-	printf("[%dgt%d?]", t1, t2);
-	return 0;
 }
 
 void expr_print(struct expr *e,