aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-06-03 23:07:55 +0200
committerMiquel Raynal <[email protected]>2022-06-09 15:06:24 +0200
commit7beae6946255711d7914abe7c4914ff2691c4b8e (patch)
treed8d693de6727209ecc836875b25ae69fa2cbb7c4 /lib/mpi/mpi-sub-ui.c
parent413948cc6208c7b47dd9fc8c56cbb04c3b2381b3 (diff)
mtd: rawnand: meson: 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. Then meson_nfc_nand_chip_cleanup() returns 0 unconditionally and can be changed to return void which allows further simplification in the remove callback. 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