Staging: lustre: fix braces are not necessary in dt_object.c
authorZoltán Lajos Kis <zoltan.lajos.kis@gmail.com>
Wed, 10 Jun 2015 20:00:16 +0000 (22:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 00:55:37 +0000 (17:55 -0700)
Fixes a braces {} are not necessary for any arm of this statement
warning in lustre/lustre/obdclass/dt_object.c that was found by
the checkpatch.pl tool.

Signed-off-by: Zoltán Lajos Kis <zoltan.lajos.kis@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/dt_object.c

index 4b5c828d6f056cc7d963c62d030aee06b2386e36..46fbf216e7f89856dc7afeda6929ef84b025098e 100644 (file)
@@ -329,9 +329,9 @@ static struct dt_object *dt_reg_open(const struct lu_env *env,
        int result;
 
        result = dt_lookup_dir(env, p, name, fid);
-       if (result == 0){
+       if (result == 0)
                o = dt_locate(env, dt, fid);
-       else
+       else
                o = ERR_PTR(result);
 
        return o;