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,14 +79,16 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value, ...@@ -79,14 +79,16 @@ 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 (quiet) { if (ret) {
CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n", if (quiet) {
id, value); CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n",
} else { id, value);
LCONSOLE_INFO("*** cfs_fail_loc=%x, val=%u***\n", } else {
id, value); LCONSOLE_INFO("*** cfs_fail_loc=%x, val=%u***\n",
id, value);
}
} }
} }
......
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