mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Staging: lustre: llite: Simplify error handling
This patch fixes the following checkpatch error:
ERROR: do not use assignment in if condition
2172: FILE: drivers/staging/lustre/lustre/llite/llite_lib.c:2172:
if (!inode || !(sbi = ll_i2sbi(inode))) {
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Suggested-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f526b20adf
commit
c650ba7377
1 changed files with 7 additions and 1 deletions
|
|
@ -2169,7 +2169,13 @@ int ll_obd_statfs(struct inode *inode, void *arg)
|
|||
__u32 flags;
|
||||
int len = 0, rc;
|
||||
|
||||
if (!inode || !(sbi = ll_i2sbi(inode))) {
|
||||
if (!inode) {
|
||||
rc = -EINVAL;
|
||||
goto out_statfs;
|
||||
}
|
||||
|
||||
sbi = ll_i2sbi(inode);
|
||||
if (!sbi) {
|
||||
rc = -EINVAL;
|
||||
goto out_statfs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue