Re: [PATCH] drivers:Modify the return value to void

From: Oliver Neukum
Date: Thu May 12 2022 - 05:58:26 EST




On 12.05.22 11:32, Zhou jie wrote:
> drivers:Modify the return value to void

Hi,

technically the patch is obviously correct. Yet, it is not a good idea.
write_mos_reg() can fail and hiding errors is not a good strategy.
You'd better propagate the error.

    Regards
        Oliver