diff options
| author | Ruoyu Wang <ruoyuw560@gmail.com> | 2026-06-09 16:45:28 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-06-11 09:20:39 +0200 |
| commit | 4fe97a54daddb221009964161fb362b2b930d657 (patch) | |
| tree | 2ad303fcfb31e857d573aaef97d731068cc2f8dd /include | |
| parent | 36f1648644d769c496a8e47e53603e863e358d73 (diff) | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
