Commit a1f10771 authored by Abdul Rauf's avatar Abdul Rauf Committed by Greg Kroah-Hartman

staging: greybus: fix checkpatch braces not necessary warning

Fix the following warnings:
braces {} are not necessary for any arm of this statement
Signed-off-by: default avatarAbdul Rauf <abdulraufmujahid@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cbd8733c
...@@ -1037,13 +1037,12 @@ static int gb_loopback_fn(void *data) ...@@ -1037,13 +1037,12 @@ static int gb_loopback_fn(void *data)
/* Else operations to perform */ /* Else operations to perform */
if (gb->async) { if (gb->async) {
if (type == GB_LOOPBACK_TYPE_PING) { if (type == GB_LOOPBACK_TYPE_PING)
error = gb_loopback_async_ping(gb); 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); 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); error = gb_loopback_async_sink(gb, size);
}
if (error) if (error)
gb->error++; gb->error++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment