Re: [PATCH] hwmon: sht3x: initialize variable 'ret' in update_interval_write().

From: Markus Elfring

Date: Sun Oct 12 2025 - 07:58:22 EST



> To address this, initialize 'ret' to 'SHT3X_CMD_LENGTH'. this makes

Make?


> the no-operation path return success while keeping the existing error
> to all other paths.


See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17#n94

Regards,
Markus