staging: lustre: lnet: lnet: Remove unneeded braces in lib-eq.c
authorEdward Lipinsky <ellipinsky@gmail.com>
Sat, 21 Feb 2015 19:29:34 +0000 (11:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:29:07 +0000 (17:29 -0800)
This patch fixes the checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Edward Lipinsky <ellipinsky@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-eq.c

index 863cc3735edfdf9714920cb5d0414c52d98aec0b..5470148f5b64a235fa9c6d35ebca7542cc1a658d 100644 (file)
@@ -81,9 +81,8 @@ LNetEQAlloc(unsigned int count, lnet_eq_handler_t callback,
 
        count = cfs_power2_roundup(count);
 
-       if (callback != LNET_EQ_HANDLER_NONE && count != 0) {
+       if (callback != LNET_EQ_HANDLER_NONE && count != 0)
                CWARN("EQ callback is guaranteed to get every event, do you still want to set eqcount %d for polling event which will have locking overhead? Please contact with developer to confirm\n", count);
-       }
 
        /* count can be 0 if only need callback, we can eliminate
         * overhead of enqueue event */