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

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
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -79,8 +79,9 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value,
{
	int ret = 0;

	if (unlikely(CFS_FAIL_PRECHECK(id) &&
		     (ret = __cfs_fail_check_set(id, value, set)))) {
	if (unlikely(CFS_FAIL_PRECHECK(id))) {
		ret = __cfs_fail_check_set(id, value, set);
		if (ret) {
			if (quiet) {
				CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n",
				       id, value);
@@ -89,6 +90,7 @@ static inline int cfs_fail_check_set(__u32 id, __u32 value,
					      id, value);
			}
		}
	}

	return ret;
}