mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 17:14:14 +08:00
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:
parent
1b2d5577c5
commit
3e9f88e688
@ -79,14 +79,16 @@ 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 (quiet) {
|
||||
CDEBUG(D_INFO, "*** cfs_fail_loc=%x, val=%u***\n",
|
||||
id, value);
|
||||
} else {
|
||||
LCONSOLE_INFO("*** cfs_fail_loc=%x, val=%u***\n",
|
||||
id, value);
|
||||
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);
|
||||
} else {
|
||||
LCONSOLE_INFO("*** cfs_fail_loc=%x, val=%u***\n",
|
||||
id, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user