lkml.org 
[lkml]   [2019]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/5] iio:potentiostat:lmp91000: insert braces around if arms
    Date
    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 <lucasseikioshiro@gmail.com>
    Signed-off-by: Anderson Reis <andersonreisrosa@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
    \
     
     \ /
      Last update: 2019-02-18 18:23    [W:7.833 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site