diff options
author | Uwe Kleine-König <[email protected]> | 2022-06-03 23:07:57 +0200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2022-06-09 15:06:28 +0200 |
commit | bb8236541f496e2a32772071fdb127dce6ac1643 (patch) | |
tree | 5f46563fcdf80ff33870452508309b8cff707a79 /lib/mpi/mpi-sub-ui.c | |
parent | 43adab7fd4131ccdeda7abb9bf66afcfa0915a82 (diff) |
mtd: physmap: Don't skip cleanup after mtd_device_unregister() failed
If mtd_device_unregister() fails (which it doesn't when used correctly),
the resources bound by the nand chip should be freed anyhow as returning
an error value doesn't prevent the device getting unbound.
Instead use WARN_ON on the return value similar to how other drivers do
it.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions