commit | 3c3f4e012ab3471e8bd19220ed897ae9700e5fdd | [log] [tgz] |
---|---|---|
author | Akinobu Mita <akinobu.mita@gmail.com> | Wed Mar 26 12:09:00 2008 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Apr 21 09:50:07 2008 +0200 |
tree | 4c0660ebae592cd0d3ee5e90edc72b086ab6267e | |
parent | 17672cf0a7cec57dea4c2a6705bd73114d5e9265 [diff] |
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>