Skip to content

Commit f8d42a0

Browse files
committed
locking/rwsem: drop redundant semicolon of down_write_nest_lock
JIRA: https://issues.redhat.com/browse/RHEL-60306 commit d72d84a Author: Guchun Chen <guchun.chen@amd.com> Date: Fri, 14 Jan 2022 16:37:42 +0800 Otherwise, braces are needed when using it. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patchwork.freedesktop.org/patch/msgid/20220114083742.6219-1-guchun.chen@amd.com Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
1 parent 15fcafe commit f8d42a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/rwsem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ extern void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *
274274
do { \
275275
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
276276
_down_write_nest_lock(sem, &(nest_lock)->dep_map); \
277-
} while (0);
277+
} while (0)
278278

279279
/*
280280
* Take/release a lock when not the owner will release it.

0 commit comments

Comments
 (0)