summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-10-13 11:51:11 -0400
committerGitHub <noreply@github.com>2023-10-13 11:51:11 -0400
commit02cbd978011ca0a8afe729ac67f7c00009d5ca0d (patch)
treea43347ff1519213c9176d5ad5515ec3468f4eaad /lib/workqueue.c
parent4fa73b6572df03fd9df7ffddf279abbcf8ad6b9c (diff)
parent7d67b9ff28d09de58c632f80ef7d330e45e698f6 (diff)
Merge pull request #14561 from idryzhov/implicit-fallthrough
build: add -Wimplicit-fallthrough
Diffstat (limited to 'lib/workqueue.c')
-rw-r--r--lib/workqueue.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index fa5d585360..2281c4c369 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -271,9 +271,10 @@ void work_queue_run(struct event *thread)
switch (ret) {
case WQ_QUEUE_BLOCKED: {
/* decrement item->ran again, cause this isn't an item
- * specific error, and fall through to WQ_RETRY_LATER
+ * specific error, and retry later
*/
item->ran--;
+ goto stats;
}
case WQ_RETRY_LATER: {
goto stats;
@@ -296,9 +297,10 @@ void work_queue_run(struct event *thread)
break;
}
case WQ_RETRY_NOW:
- /* a RETRY_NOW that gets here has exceeded max_tries, same as
- * ERROR */
- /* fallthru */
+ /* a RETRY_NOW that gets here has exceeded max_tries, same
+ * as ERROR
+ */
+ fallthrough;
case WQ_SUCCESS:
default: {
work_queue_item_remove(wq, item);