Commit 3e9f88e6 authored by Perry Hooker's avatar Perry Hooker Committed by Greg Kroah-Hartman

staging: lustre: libcfs: move assignment out of conditional

Found by checkpatch.pl
Signed-off-by: default avatarPerry Hooker <perry.hooker@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b2d5577
...@@ -79,8 +79,9 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value, ...@@ -79,8 +79,9 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value,
{ {
int ret = 0; int ret = 0;
if (unlikely(CFS_FAIL_PRECHECK(id) && if (unlikely(CFS_FAIL_PRECHECK(id))) {
(ret = __cfs_fail_check_set(id, value, set)))) { ret = __cfs_fail_check_set(id, value, set);
if (ret) {
if (quiet) { if (quiet) {
CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n", CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n",
id, value); id, value);
...@@ -89,6 +90,7 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value, ...@@ -89,6 +90,7 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value,
id, value); id, value);
} }
} }
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment