summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_memory.c
diff options
context:
space:
mode:
authorChandra S Gorentla <csgorentla@gmail.com>2015-08-08 17:41:36 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-08 15:22:12 -0700
commit78174adaf59e85274bb3dde5c5084619ed06020b (patch)
tree86c58f1de0cd7cac7fb506b0a9974c7918162c56 /drivers/staging/wilc1000/wilc_memory.c
parent17aacd43c8d4e733d77f093a18de9d8d2b115407 (diff)
downloadop-kernel-dev-78174adaf59e85274bb3dde5c5084619ed06020b.zip
op-kernel-dev-78174adaf59e85274bb3dde5c5084619ed06020b.tar.gz
staging: wilc1000: Remove braces for single statement 'if' and 'else'
Fixes the checkpatch.pl warning - braces {} are not necessary for any arm of this statement Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_memory.c')
-rw-r--r--drivers/staging/wilc1000/wilc_memory.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_memory.c b/drivers/staging/wilc1000/wilc_memory.c
index c70707f..34ef13e 100644
--- a/drivers/staging/wilc1000/wilc_memory.c
+++ b/drivers/staging/wilc1000/wilc_memory.c
@@ -9,11 +9,10 @@
void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
char *pcFileName, u32 u32LineNo)
{
- if (u32Size > 0) {
+ if (u32Size > 0)
return kmalloc(u32Size, GFP_ATOMIC);
- } else {
+ else
return NULL;
- }
}
/*!
OpenPOWER on IntegriCloud