aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/osc/osc_object.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2016-04-01 15:18:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-11 20:44:03 -0700
commitda5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804 (patch)
tree842819e7f8e0c32e1e0639faa723ba57d02be755 /drivers/staging/lustre/lustre/osc/osc_object.c
parentMerge 4.6-rc3 into staging-next (diff)
downloadlinux-dev-da5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804.tar.xz
linux-dev-da5ecb4dfd84fa4eaba782fc3fa0aa0f807a5804.zip
staging/lustre: Fix braces {} style
This fixes all checkpatch form of this from the Lustre tree: CHECK: braces {} should be used on all arms of this statement Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/osc/osc_object.c')
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_object.c b/drivers/staging/lustre/lustre/osc/osc_object.c
index a06bdf10b6ff..738ab10ab274 100644
--- a/drivers/staging/lustre/lustre/osc/osc_object.c
+++ b/drivers/staging/lustre/lustre/osc/osc_object.c
@@ -292,8 +292,9 @@ struct lu_object *osc_object_alloc(const struct lu_env *env,
lu_object_init(obj, NULL, dev);
osc->oo_cl.co_ops = &osc_ops;
obj->lo_ops = &osc_lu_obj_ops;
- } else
+ } else {
obj = NULL;
+ }
return obj;
}