1
0
Fork 0

greybus: control: remove some braces

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>
hifive-unleashed-5.1
Johan Hovold 2016-08-03 14:09:29 +02:00 committed by Greg Kroah-Hartman
parent 6e8fc8c4c9
commit 081ee14ab4
1 changed files with 1 additions and 2 deletions

View 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);