From: Akinobu Mita Date: Wed, 26 Mar 2008 11:09:00 +0000 (+0100) Subject: cdrom: cleanup hardcoded error-code X-Git-Tag: v2.6.26-rc1~1115^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3f4e012ab3471e8bd19220ed897ae9700e5fdd;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed