summaryrefslogtreecommitdiffstats
path: root/fs/romfs
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2008-03-26 12:09:00 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-04-21 09:50:07 +0200
commit3c3f4e012ab3471e8bd19220ed897ae9700e5fdd (patch)
tree4c0660ebae592cd0d3ee5e90edc72b086ab6267e /fs/romfs
parentcdrom: remove ifdef CONFIG_SYSCTL (diff)
downloadlinux-3c3f4e012ab3471e8bd19220ed897ae9700e5fdd.tar.xz
linux-3c3f4e012ab3471e8bd19220ed897ae9700e5fdd.zip
cdrom: cleanup hardcoded error-code
This patch eliminates hardcoded return value of register_cdrom(). It also changes the return value to -EINVAL. It is more appropriate than -2 (-ENOENT) because it is only happen invalid usage of register_cdrom() by broken cdrom driver. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/romfs')
0 files changed, 0 insertions, 0 deletions