All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Wolfram Sang <wsa@the-dreams.de>,
	Rob Herring <robh+dt@kernel.org>,
	linux-i2c <linux-i2c@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 4/5] i2c: pca-platform: use device managed allocations
Date: Wed, 28 Jun 2017 12:23:00 +0300	[thread overview]
Message-ID: <CAHp75VfE=gCO3EDvadxar=qdnqMHKAZg2TSvXBtYebx+Y_agEw@mail.gmail.com> (raw)
In-Reply-To: <20170626004434.2757-5-chris.packham@alliedtelesis.co.nz>

On Mon, Jun 26, 2017 at 3:44 AM, Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
> Switch to using the devm_ APIs and remove the now unnecessary error
> handling and most of the device removal code.


>         if (i2c_pca_add_numbered_bus(&i2c->adap) < 0) {
> -               ret = -ENODEV;
> -               goto e_adapt;
> +               return -ENODEV;

This is still shadows the actual error code.

-- 
With Best Regards,
Andy Shevchenko

  parent reply	other threads:[~2017-06-28  9:23 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20  1:18 [PATCH v2 0/5] i2c: pca-platform: updates Chris Packham
2017-06-20  1:18 ` [PATCH v2 1/5] dt-bindings: add bindings for i2c-pca-platform Chris Packham
2017-06-22  8:22   ` Wolfram Sang
2017-06-22  8:22     ` Wolfram Sang
2017-06-22 21:20     ` Chris Packham
2017-06-23  8:17       ` Wolfram Sang
2017-06-23  8:17         ` Wolfram Sang
2017-06-23 21:41       ` Rob Herring
2017-06-20  1:18 ` [PATCH v2 2/5] i2c: pca-platform: add devicetree awareness Chris Packham
2017-06-20  1:18 ` [PATCH v2 3/5] i2c: pca-platform: use gpio_is_valid Chris Packham
2017-06-20  1:18   ` Chris Packham
2017-06-20  1:18 ` [PATCH v2 4/5] i2c: pca-platform: use device managed allocations Chris Packham
2017-06-20  1:18   ` Chris Packham
2017-06-20  1:18 ` [PATCH v2 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk Chris Packham
2017-06-20  1:18   ` Chris Packham
2017-06-26  0:44 ` [PATCH v3 0/5] i2c: pca-platform: updates Chris Packham
2017-06-26  0:44   ` [PATCH v3 1/5] dt-bindings: add bindings for i2c-pca-platform Chris Packham
2017-06-26 14:06     ` Rob Herring
2017-06-26 14:06       ` Rob Herring
2017-06-27 19:53     ` Wolfram Sang
2017-06-26  0:44   ` [PATCH v3 2/5] i2c: pca-platform: switch to struct gpio_desc Chris Packham
2017-06-27 19:53     ` Wolfram Sang
2017-06-28  9:25     ` Andy Shevchenko
2017-06-28 21:25       ` Chris Packham
2017-06-28 22:18         ` Wolfram Sang
2017-06-26  0:44   ` [PATCH v3 3/5] i2c: pca-platform: add devicetree awareness Chris Packham
2017-06-27 19:55     ` Wolfram Sang
2017-06-28  9:20     ` Andy Shevchenko
2017-06-28  9:42       ` Wolfram Sang
2017-06-28 21:15       ` Chris Packham
2017-06-26  0:44   ` [PATCH v3 4/5] i2c: pca-platform: use device managed allocations Chris Packham
2017-06-27 19:55     ` Wolfram Sang
2017-06-28  9:23     ` Andy Shevchenko [this message]
2017-06-28  9:38       ` Wolfram Sang
2017-06-28 10:54         ` Andy Shevchenko
2017-06-28 21:03           ` Chris Packham
2017-06-26  0:44   ` [PATCH v3 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk Chris Packham
2017-06-27 19:55     ` Wolfram Sang
2017-06-28  9:28     ` Andy Shevchenko
2017-06-28  9:37       ` Wolfram Sang
2017-06-28 10:57         ` Andy Shevchenko
2017-06-28 12:01           ` Wolfram Sang

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='CAHp75VfE=gCO3EDvadxar=qdnqMHKAZg2TSvXBtYebx+Y_agEw@mail.gmail.com' \
    --to=andy.shevchenko@gmail.com \
    --cc=chris.packham@alliedtelesis.co.nz \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=wsa@the-dreams.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.