btf: remove empty default: cases in switch statements
PATCH 1/20 btf: remove empty default: cases in switch statements
Signed-off-by Alan Maguire <[email protected]>
Signed-off-by Kris Van Hees <[email protected]>
Reviewed-by Kris Van Hees <[email protected]>
--- libdtrace/dt_btf.c | 4 ---- 1 file changed, 4 deletions(-)
libdtrace/dt_btf.c +0 -4
@@ -1069,8 +1069,6 @@ dt_btf_func_is_traceable(dtrace_hdl_t *dtp, const dt_btf_t *btf, uint32_t id)case BTF_KIND_STRUCT :case BTF_KIND_UNION :return 0 ; -default : -/* fall-through */ } }
@@ -1097,8 +1095,6 @@ dt_btf_func_is_traceable(dtrace_hdl_t *dtp, const dt_btf_t *btf, uint32_t id)case BTF_KIND_UNION :if (type->size >16 )/* value size > 16 */ return 0 ; -default : -/* fall-through */ } } }
Signature · 1 line
2.52.0
On 30 Oct 2026, Kris Van Hees told this:
Quoted 3 lines
Signed-off-by Alan Maguire <[email protected]>Signed-off-by Kris Van Hees <[email protected]>Reviewed-by Kris Van Hees <[email protected]>
Seems wise.
Reviewed-by Nick Alcock <[email protected]>