diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-03-28 11:48:40 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-04-01 13:31:12 -0500 |
commit | 0175e51b5134b55c89364aae68ec16271c67e472 (patch) | |
tree | e66772705d2634eb6cf6450a8fd896cc029bcbcd /fs/dlm/ast.c | |
parent | 4ed424280942f40b033d669eb9204a52e6d41639 (diff) | |
download | linux-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.c | 5 |
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; |