Re: [PATCH 01/13] a2b: add A2B driver core

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

 



…
> +++ b/drivers/a2b/a2b.c
> @@ -0,0 +1,1252 @@
…
> +unsigned long a2b_bus_status(struct a2b_bus *bus)
> +{
> +	unsigned long status;
> +
> +	mutex_lock(&bus->mutex);
> +	status = bus->status;
> +	mutex_unlock(&bus->mutex);
> +
> +	return status;
> +}
…

How do you think about to increase the application of scope-base resource management
also for such software components?
https://elixir.bootlin.com/linux/v6.9.1/source/include/linux/cleanup.h#L124

Regards,
Markus





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux