lkml.org 
[lkml]   [2020]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 1/2] regulator: da9121: Remove uninitialised string variable
    Erroneously left in when switched to using of_parse_cb()

    Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
    ---
    drivers/regulator/da9121-regulator.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c
    index db1c2cc..ed68259 100644
    --- a/drivers/regulator/da9121-regulator.c
    +++ b/drivers/regulator/da9121-regulator.c
    @@ -816,7 +816,6 @@ static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
    u32 variant_id;
    u8 variant_mrc, variant_vrc;
    char *type;
    - const char *name;
    bool config_match = false;
    int ret = 0;

    @@ -867,7 +866,7 @@ static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
    device_id, variant_id, type);

    if (!config_match) {
    - dev_err(chip->dev, "Device tree configuration '%s' does not match detected device.\n", name);
    + dev_err(chip->dev, "Device tree configuration does not match detected device.\n");
    ret = -EINVAL;
    goto error;
    }
    --
    1.9.1
    \
     
     \ /
      Last update: 2020-12-07 18:19    [W:4.236 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site