summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/vtbl.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-17 14:48:49 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-26 18:15:15 +0100
commitdb6e5770ef0ab351a403ac26e1ab1309e58f15d7 (patch)
tree29048da47919be2b8f54bf408fe900c042c9868a /drivers/mtd/ubi/vtbl.c
parentUBI: fix and cleanup volume opening functions (diff)
downloadlinux-db6e5770ef0ab351a403ac26e1ab1309e58f15d7.tar.xz
linux-db6e5770ef0ab351a403ac26e1ab1309e58f15d7.zip
UBI: simplify error handling
If we fail halfway through sysfs file creation, we may just call sysfs remove function and it will delete all the files we created. For non-existing files it will also be OK - the remove functions just return -ENOENT. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/vtbl.c')
0 files changed, 0 insertions, 0 deletions