]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/brlock: avoid an else branch
authorRalph Boehme <slow@samba.org>
Thu, 19 Sep 2019 19:19:24 +0000 (12:19 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:37 +0000 (10:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/locking/brlock.c

index 85713b4b865c9b3d5615057823aa3f12bd3bf3ad..029fb920630adc79202dcee64dccf691e520d896 100644 (file)
@@ -1600,9 +1600,9 @@ static void byte_range_lock_flush(struct byte_range_lock *br_lck)
                         */
                        locks[i] = locks[br_lck->num_locks-1];
                        br_lck->num_locks -= 1;
-               } else {
-                       i += 1;
+                       continue;
                }
+               i += 1;
        }
 
        if (br_lck->num_locks == 0) {