Re: [PATCH][next] ACPI: thermal_lib: Add missing checks for errors in return code ret

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/02/2024 10:21, Rafael J. Wysocki wrote:
On Wed, Feb 21, 2024 at 2:19 PM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

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.

Sounds good to me.

Anyone willing to cut a patch for this?

will do





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux