From: Dan Carpenter <dan.carpenter@oracle.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] hwmon: (tmp401) Convert to use devm_hwmon_device_register_with_groups
Date: Wed, 06 Nov 2013 20:38:57 +0000 [thread overview]
Message-ID: <20131106203856.GK20521@mwanda> (raw)
In-Reply-To: <20131018142506.GA25585@longonot.mountain>
On Wed, Nov 06, 2013 at 11:39:24AM -0800, Guenter Roeck wrote:
> On Wed, Nov 06, 2013 at 10:28:41PM +0300, Dan Carpenter wrote:
> > Hello Guenter Roeck,
> >
> > The patch 42f309303902: "hwmon: (tmp401) Convert to use
> > devm_hwmon_device_register_with_groups" from Sep 4, 2013, leads to
> > the following
> > static checker warning: "drivers/hwmon/tmp401.c:360 store_temp()
> > warn: 'data' isn't an ERR_PTR"
> >
> > drivers/hwmon/tmp401.c
> > 354 struct tmp401_data *data = dev_get_drvdata(dev);
> > 355 struct i2c_client *client = data->client;
> > 356 long val;
> > 357 u16 reg;
> > 358 u8 regaddr;
> > 359
> > 360 if (IS_ERR(data))
> > 361 return PTR_ERR(data);
> >
> > dev_get_drvdata() returns NULL on error, but I'm not sure if that's
> > possible here. Can the check be removed?
> >
> Hi Dan,
>
> I am a bit confused. I seem to recall that you reported this before,
> and I am quite sure I had it fixed. Looking at my hwmon-next branch,
> that code is no longer in there. linux-next doesn't have it either.
> What repository are you checking ?
Oops. Sorry about that. I sent this by mistake.
regards,
dan carpenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
prev parent reply other threads:[~2013-11-06 20:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 14:25 [lm-sensors] hwmon: (tmp401) Convert to use devm_hwmon_device_register_with_groups Dan Carpenter
2013-10-18 16:13 ` Guenter Roeck
2013-10-19 8:24 ` Dan Carpenter
2013-11-06 19:28 ` Dan Carpenter
2013-11-06 19:39 ` Guenter Roeck
2013-11-06 20:38 ` Dan Carpenter [this message]
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=20131106203856.GK20521@mwanda \
--to=dan.carpenter@oracle.com \
--cc=lm-sensors@vger.kernel.org \
/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.