Re: [PATCH] iio: imu: inv_mpu6050: Remove duplicate code between labels
From: Markus Elfring
Date: Sun Sep 01 2024 - 08:10:01 EST
> 'flush_fifo' label performs same task as 'endsession' label
end_session?
The number of actions differ between involved jump targets.
> immediately after calling 'env_reset_fifo' function.
> so i remove that duplication.
* You would like to specify a corresponding goto chain at the moment,
don't you?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.11-rc5#n526
* How do you think about to increase the application of scope-based resource management?
Regards,
Markus