From: Catalina Mocanu Date: Sat, 20 Sep 2014 16:39:07 +0000 (-0700) Subject: staging: unisys: visorutil: remove unnecessary braces X-Git-Tag: v3.18-rc1~130^2~254 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6905cae3a86f6411b62fda0c7a8e1c0d04eaef88;p=karo-tx-linux.git staging: unisys: visorutil: remove unnecessary braces This fixes the following checkpatch.pl warning: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Catalina Mocanu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorutil/procobjecttree.c b/drivers/staging/unisys/visorutil/procobjecttree.c index 5c8c95c51519..c476036f7382 100644 --- a/drivers/staging/unisys/visorutil/procobjecttree.c +++ b/drivers/staging/unisys/visorutil/procobjecttree.c @@ -250,9 +250,8 @@ MYPROCOBJECT *visor_proc_CreateObject(MYPROCTYPE *type, } strcpy(obj->name, name); obj->procDir = createProcDir(obj->name, type->procDir); - if (obj->procDir == NULL) { + if (obj->procDir == NULL) goto Away; - } } obj->procDirPropertyContexts = kzalloc((type->nProperties + 1) * sizeof(PROCDIRENTRYCONTEXT),