@@ -1444,12 +1444,12 @@ int smscore_gpio_configure(struct smscor
rc = smscore_sendrequest_and_wait(coredev, pMsg, totalLen,
&coredev->gpio_configuration_done);
- if (rc != 0)
+ if (rc != 0) {
if (rc == -ETIME)
sms_err("smscore_gpio_configure timeout");
else
sms_err("smscore_gpio_configure error");
-
+ }
kfree(buffer);
return rc;
@@ -1493,12 +1493,12 @@ int smscore_gpio_set_level(struct smscor
rc = smscore_sendrequest_and_wait(coredev, pMsg, totalLen,
&coredev->gpio_set_level_done);
- if (rc != 0)
+ if (rc != 0) {
if (rc == -ETIME)
sms_err("smscore_gpio_set_level timeout");
else
sms_err("smscore_gpio_set_level error");
-
+ }
kfree(buffer);
return rc;
@@ -1541,12 +1541,12 @@ int smscore_gpio_get_level(struct smscor
rc = smscore_sendrequest_and_wait(coredev, pMsg, totalLen,
&coredev->gpio_get_level_done);
- if (rc != 0)
+ if (rc != 0) {
if (rc == -ETIME)
sms_err("smscore_gpio_get_level timeout");
else
sms_err("smscore_gpio_get_level error");
-
+ }
kfree(buffer);
/* Its a race between other gpio_get_level() and the copy of the single