From 081ee14ab4452bbf7bab9b4df61519bb48a44375 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 3 Aug 2016 14:09:29 +0200 Subject: [PATCH] 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 --- drivers/staging/greybus/control.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);