staging: lustre: libcfs: move assignment out of conditional

Found by checkpatch.pl

Signed-off-by: Perry Hooker <perry.hooker@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Perry Hooker 2015-07-13 17:33:47 -06:00 committed by Greg Kroah-Hartman
parent 1b2d5577c5
commit 3e9f88e688

View File

@ -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);
}
} }
} }