Commit 4589f066 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: pwm-gb.c: fix up missing { } for else

This was a compiler warning, which looked correct, but was trying to
tell us something else...
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 9ffb4b8b
......@@ -149,9 +149,10 @@ static int gb_pwm_count_operation(struct gb_pwm_chip *pwmc)
ret = gb_operation_status_map(operation->result);
gb_connection_err(connection, "pwm count result %hhu",
operation->result);
} else
} else {
response = operation->response.payload;
pwmc->pwm_max = response->count;
}
out:
gb_operation_destroy(operation);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment