greybus: control: remove some braces
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 3 Aug 2016 12:09:29 +0000 (14:09 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Aug 2016 13:42:38 +0000 (15:42 +0200)
Remove some no-longer-needed braces around an error path.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c

index 34493d5..658f8a6 100644 (file)
@@ -174,9 +174,8 @@ int gb_control_mode_switch_operation(struct gb_control *control)
                return -ENOMEM;
 
        ret = gb_operation_request_send_sync(operation);
-       if (ret) {
+       if (ret)
                dev_err(&control->dev, "failed to send mode switch: %d\n", ret);
-       }
 
        gb_operation_put(operation);