Skip to contentSkip to conversation

btf: remove empty default: cases in switch statements

PATCH In review Kris Van Hees 2 participants 2 messages Oct 30 – Nov 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/20 btf: remove empty default: cases in switch statements

---
 libdtrace/dt_btf.c | 4 ----
 1 file changed, 4 deletions(-)
libdtrace/dt_btf.c +0 -4
index b16289bf..55b58bf5 100644
@@ -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