Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
mtd: slram: simplify register_device() cleanup
Use local variables for the list entry, mtd_info, and private data while initializing a new device. This keeps the initialization path easier to read and publishes the new list entry only after mtd_device_register() has succeeded. Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Author Ruoyu Wang Committer Miquel Raynal Date (Jun 11, 2026, 7:20 AM UTC) Commit
Copy SHA
Parent 36f16486 36f1648644d769c496a8e47e53603e863e358d73