Insert braces around all arms of if statement starting on line 214,
and solve these checkpath.el CHECKs:

- lmp91000.c:214: CHECK: braces {} should be used on all arms of this statement
- lmp91000.c:216: CHECK: Unbalanced braces around else statement

Signed-off-by: Lucas Oshiro <lucasseikiosh...@gmail.com>
Signed-off-by: Anderson Reis <andersonreisr...@gmail.com>
---
 drivers/iio/potentiostat/lmp91000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/potentiostat/lmp91000.c 
b/drivers/iio/potentiostat/lmp91000.c
index 03d277621861..ca31be510940 100644
--- a/drivers/iio/potentiostat/lmp91000.c
+++ b/drivers/iio/potentiostat/lmp91000.c
@@ -211,9 +211,9 @@ static int lmp91000_read_config(struct lmp91000_data *data)
 
        ret = of_property_read_u32(np, "ti,tia-gain-ohm", &val);
        if (ret) {
-               if (of_property_read_bool(np, "ti,external-tia-resistor"))
+               if (of_property_read_bool(np, "ti,external-tia-resistor")) {
                        val = 0;
-               else {
+               } else {
                        dev_err(dev, "no ti,tia-gain-ohm defined");
                        return ret;
                }
-- 
2.20.1

Reply via email to