staging: vchiq_dev: remove braces from if block
authorGaston Gonzalez <gascoar@gmail.com>
Sun, 12 Sep 2021 13:37:50 +0000 (10:37 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 16:26:34 +0000 (18:26 +0200)
Remove unnecessary braces from if block.

Reported by checkpatch.pl

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/20210912133751.269885-1-gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c

index 788fa5a987a36e0ee56e3193cf7a0cc4f457660d..c990d5d7bfb5e85e57ab8d0b8be9f2ea461fa3ab 100644 (file)
@@ -447,9 +447,8 @@ static int vchiq_ioc_await_completion(struct vchiq_instance *instance,
        DEBUG_INITIALISE(g_state.local)
 
        DEBUG_TRACE(AWAIT_COMPLETION_LINE);
-       if (!instance->connected) {
+       if (!instance->connected)
                return -ENOTCONN;
-       }
 
        mutex_lock(&instance->completion_mutex);