From: Johan Hovold Date: Wed, 3 Aug 2016 12:09:29 +0000 (+0200) Subject: greybus: control: remove some braces X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=081ee14ab4452bbf7bab9b4df61519bb48a44375;p=linux-beck.git greybus: control: remove some braces Remove some no-longer-needed braces around an error path. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index 34493d572684..658f8a641ee2 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -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);