From: Greg Kroah-Hartman Date: Thu, 20 Nov 2014 01:02:21 +0000 (-0800) Subject: greybus: pwm-gb.c: fix up missing { } for else X-Git-Tag: v5.15~12752^2~378^2~21^2~1848 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4589f0666334edf220402cc4d791657e3565f9f7;p=platform%2Fkernel%2Flinux-starfive.git 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: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/pwm-gb.c b/drivers/staging/greybus/pwm-gb.c index 0b66f8c..c92d8e2 100644 --- a/drivers/staging/greybus/pwm-gb.c +++ b/drivers/staging/greybus/pwm-gb.c @@ -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);