]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: greybus: fix checkpatch braces not necessary warning
authorAbdul Rauf <abdulraufmujahid@gmail.com>
Wed, 11 Jan 2017 00:55:59 +0000 (00:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jan 2017 17:08:56 +0000 (18:08 +0100)
Fix the following warnings:
braces {} are not necessary for any arm of this statement

Signed-off-by: Abdul Rauf <abdulraufmujahid@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/loopback.c

index 3184dd3999b5598ae8e735cb25c904bf89366153..5ede67fcdd61a5c474fa5d62d2b1958b9e72a56e 100644 (file)
@@ -1037,13 +1037,12 @@ static int gb_loopback_fn(void *data)
 
                /* Else operations to perform */
                if (gb->async) {
-                       if (type == GB_LOOPBACK_TYPE_PING) {
+                       if (type == GB_LOOPBACK_TYPE_PING)
                                error = gb_loopback_async_ping(gb);
-                       } else if (type == GB_LOOPBACK_TYPE_TRANSFER) {
+                       else if (type == GB_LOOPBACK_TYPE_TRANSFER)
                                error = gb_loopback_async_transfer(gb, size);
-                       } else if (type == GB_LOOPBACK_TYPE_SINK) {
+                       else if (type == GB_LOOPBACK_TYPE_SINK)
                                error = gb_loopback_async_sink(gb, size);
-                       }
 
                        if (error)
                                gb->error++;