Commit 566be54d authored by Tina Johnson's avatar Tina Johnson Committed by Greg Kroah-Hartman

Staging: lustre: Fix checkpatch warning: Unnecessary braces

The following checkpatch warning was fixed :

WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: default avatarTina Johnson <tinajohnson.1234@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf29a7b6
...@@ -1122,9 +1122,8 @@ void ll_put_super(struct super_block *sb) ...@@ -1122,9 +1122,8 @@ void ll_put_super(struct super_block *sb)
} }
next = 0; next = 0;
while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) !=NULL) { while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) !=NULL)
class_manual_cleanup(obd); class_manual_cleanup(obd);
}
if (sbi->ll_flags & LL_SBI_VERBOSE) if (sbi->ll_flags & LL_SBI_VERBOSE)
LCONSOLE_WARN("Unmounted %s\n", profilenm ? profilenm : ""); LCONSOLE_WARN("Unmounted %s\n", profilenm ? profilenm : "");
...@@ -1734,11 +1733,10 @@ void ll_update_inode(struct inode *inode, struct lustre_md *md) ...@@ -1734,11 +1733,10 @@ void ll_update_inode(struct inode *inode, struct lustre_md *md)
if (body->valid & OBD_MD_FLTYPE) if (body->valid & OBD_MD_FLTYPE)
inode->i_mode = (inode->i_mode & ~S_IFMT)|(body->mode & S_IFMT); inode->i_mode = (inode->i_mode & ~S_IFMT)|(body->mode & S_IFMT);
LASSERT(inode->i_mode != 0); LASSERT(inode->i_mode != 0);
if (S_ISREG(inode->i_mode)) { if (S_ISREG(inode->i_mode))
inode->i_blkbits = min(PTLRPC_MAX_BRW_BITS + 1, LL_MAX_BLKSIZE_BITS); inode->i_blkbits = min(PTLRPC_MAX_BRW_BITS + 1, LL_MAX_BLKSIZE_BITS);
} else { else
inode->i_blkbits = inode->i_sb->s_blocksize_bits; inode->i_blkbits = inode->i_sb->s_blocksize_bits;
}
if (body->valid & OBD_MD_FLUID) if (body->valid & OBD_MD_FLUID)
inode->i_uid = make_kuid(&init_user_ns, body->uid); inode->i_uid = make_kuid(&init_user_ns, body->uid);
if (body->valid & OBD_MD_FLGID) if (body->valid & OBD_MD_FLGID)
......
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