From: Dan Carpenter <dan.carpenter@linaro.org>
To: Colin Ian King <colin.i.king@gmail.com>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
Zhang Rui <rui.zhang@intel.com>, Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] ACPI: thermal_lib: Add missing checks for errors in return code ret
Date: Wed, 21 Feb 2024 16:19:14 +0300 [thread overview]
Message-ID: <68571997-c33a-49f8-b922-4b102e5b682b@moroto.mountain> (raw)
In-Reply-To: <4b78456b-071f-46c0-bb47-919b493cab79@moroto.mountain>
Btw, in real life, in 2024, the compiler is going to automatically
initialize "temp_decik" to zero. So we could just do:
- int temp_decik;
+ int temp_decik = 0;
That would silence the warning without affecting anything else at all.
regards,
dan carpenter
next prev parent reply other threads:[~2024-02-21 13:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 12:39 Colin Ian King
2024-02-21 13:15 ` Dan Carpenter
2024-02-21 13:19 ` Dan Carpenter [this message]
2024-02-22 10:21 ` Rafael J. Wysocki
2024-02-22 10:26 ` Colin King (gmail)
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=68571997-c33a-49f8-b922-4b102e5b682b@moroto.mountain \
--to=dan.carpenter@linaro.org \
--cc=colin.i.king@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/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
all inboxes | Powered by JetHome®