From: Jerome Brunet <jbrunet@baylibre.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [bug report] hwmon: (pmbus/tps25990) Add initial support
Date: Fri, 06 Dec 2024 10:45:55 +0100 [thread overview]
Message-ID: <1jplm5jga4.fsf@starbuckisacylon.baylibre.com> (raw)
In-Reply-To: <b2b550ae-a2b0-41f8-a0ce-9dafd1714f8c@stanley.mountain> (Dan Carpenter's message of "Fri, 6 Dec 2024 12:37:40 +0300")
On Fri 06 Dec 2024 at 12:37, Dan Carpenter <dan.carpenter@linaro.org> wrote:
> Hello Jerome Brunet,
>
> Commit 6fbd1e5d9876 ("hwmon: (pmbus/tps25990) Add initial support")
> from Dec 2, 2024 (linux-next), leads to the following Smatch static
> checker warning:
>
> drivers/hwmon/pmbus/tps25990.c:134 tps25990_read_word_data()
> warn: ignoring unreachable code.
>
> drivers/hwmon/pmbus/tps25990.c
> 127 case PMBUS_VIRT_READ_IIN_AVG:
> 128 ret = pmbus_read_word_data(client, page, phase,
> 129 TPS25990_READ_IIN_AVG);
> 130 break;
> 131
> 132 case PMBUS_VIRT_READ_IIN_MAX:
> 133 return TPS25990_READ_IIN_PEAK;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> --> 134 ret = pmbus_read_word_data(client, page, phase,
> 135 TPS25990_READ_IIN_PEAK);
>
> Is this supposed to be stubbed out?
Thanks for the report Dan, silly mistake indeed.
This has already been taken care of by Guenter.
>
> 136 break;
> 137
> 138 case PMBUS_VIRT_READ_TEMP_AVG:
> 139 ret = pmbus_read_word_data(client, page, phase,
> 140 TPS25990_READ_TEMP_AVG);
>
> regards,
> dan carpenter
--
Jerome
prev parent reply other threads:[~2024-12-06 9:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 9:37 [bug report] hwmon: (pmbus/tps25990) Add initial support Dan Carpenter
2024-12-06 9:45 ` Jerome Brunet [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=1jplm5jga4.fsf@starbuckisacylon.baylibre.com \
--to=jbrunet@baylibre.com \
--cc=dan.carpenter@linaro.org \
--cc=linux-hwmon@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox