locking: use shared success_fail_return() function
commit111dd9eedb1e331d5462a19a1111c3a478b8d385
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 May 2023 09:28:55 +0000 (5 12:28 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 May 2023 09:28:55 +0000 (5 12:28 +0300)
tree85813e62e6688e01c097ce1837a3fa3e81a442ee
parentbb4aea20ea471e452632c9d69d87998c6cdda6b8
locking: use shared success_fail_return() function

This change introduces one false positive:

fs/ocfs2/dlm/dlmmaster.c:3282 dlm_reset_mleres_owner() warn: inconsistent returns '&dlm->master_lock'

Because returning true/false is not necessarily the same as returning
success/fail.  However, I am willing to live with that for now.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_locking.c