public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-iio@vger.kernel.org, Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	kernel test robot <lkp@intel.com>,
	Dan Carpenter <dan.carpenter@oracle.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>
Subject: Re: [PATCH 1/2] iio: magnetometer: yas530: Fix return value on errorpath
Date: Sun, 21 Feb 2021 15:45:11 +0000	[thread overview]
Message-ID: <20210221154511.75b3d8a6@archlinux> (raw)
In-Reply-To: <20210215153023.47899-1-linus.walleij@linaro.org>

On Mon, 15 Feb 2021 16:30:23 +0100
Linus Walleij <linus.walleij@linaro.org> wrote:

> There was a missed return variable assignment in the
> default errorpath of the switch statement in yas5xx_probe().
> Fix it.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Hi Linus,

A bit of bad timing on these.  I'm running behind on pull requests for
my fixes-togreg branch so it doesn't yet have the driver.

Hence I'll pick these up in a couple of weeks once that's rebased after
I send Greg a pull request.

Give me a poke if I seem to have forgotten them.

Thanks,

Jonathan

> ---
>  drivers/iio/magnetometer/yamaha-yas530.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magnetometer/yamaha-yas530.c
> index d46f23d82b3d..cee6207d8847 100644
> --- a/drivers/iio/magnetometer/yamaha-yas530.c
> +++ b/drivers/iio/magnetometer/yamaha-yas530.c
> @@ -887,6 +887,7 @@ static int yas5xx_probe(struct i2c_client *i2c,
>  		strncpy(yas5xx->name, "yas532", sizeof(yas5xx->name));
>  		break;
>  	default:
> +		ret = -ENODEV;
>  		dev_err(dev, "unhandled device ID %02x\n", yas5xx->devid);
>  		goto assert_reset;
>  	}


  reply	other threads:[~2021-02-21 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 15:30 [PATCH 1/2] iio: magnetometer: yas530: Fix return value on errorpath Linus Walleij
2021-02-21 15:45 ` Jonathan Cameron [this message]
2021-03-01  9:00   ` Linus Walleij
2021-03-22 19:51     ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210221154511.75b3d8a6@archlinux \
    --to=jic23@kernel.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox