Skip to content

Commit 990bf46

Browse files
committed
dmaengine: sdxi: context: Document omitted default in switch stmt
See https://lore.kernel.org/dmaengine/20250917143410.00005bb4@huawei.com/ Add a break though. Signed-off-by: Nathan Lynch <nathan.lynch@amd.com>
1 parent 66ae7bc commit 990bf46

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/dma/sdxi/context.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ static const char *cxt_sts_state_str(enum cxt_sts_state state)
289289
case CXTV_STOPG_FN:
290290
case CXTV_ERR_FN:
291291
str = context_states[state];
292+
break;
293+
/* default: label deliberately omitted so -Wswitch will work. */
292294
}
293295

294296
return str;

0 commit comments

Comments
 (0)