summaryrefslogtreecommitdiffstats
path: root/fs/dlm/ast.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-03-28 11:48:40 -0400
committerDavid Teigland <teigland@redhat.com>2024-04-01 13:31:12 -0500
commit0175e51b5134b55c89364aae68ec16271c67e472 (patch)
treee66772705d2634eb6cf6450a8fd896cc029bcbcd /fs/dlm/ast.c
parent4ed424280942f40b033d669eb9204a52e6d41639 (diff)
downloadlinux-0175e51b5134b55c89364aae68ec16271c67e472.tar.gz
linux-0175e51b5134b55c89364aae68ec16271c67e472.tar.bz2
linux-0175e51b5134b55c89364aae68ec16271c67e472.zip
dlm: combine switch case fail and default statements
This patch combines the failure and default cases for enqueue and dequeue a callback to the lkb callback queue that should end in both cases as it should never happen. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/ast.c')
-rw-r--r--fs/dlm/ast.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c
index cadbcbe0786b..5ea0b62f276b 100644
--- a/fs/dlm/ast.c
+++ b/fs/dlm/ast.c
@@ -160,11 +160,10 @@ void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
}
spin_unlock(&ls->ls_cb_lock);
break;
- case DLM_ENQUEUE_CALLBACK_FAILURE:
- WARN_ON_ONCE(1);
- break;
case DLM_ENQUEUE_CALLBACK_SUCCESS:
break;
+ case DLM_ENQUEUE_CALLBACK_FAILURE:
+ fallthrough;
default:
WARN_ON_ONCE(1);
break;