From: Robert P. J. Day Date: Mon, 16 Jul 2007 06:41:19 +0000 (-0700) Subject: cdrom: replace hard-coded constants by kernel.h macro. X-Git-Tag: v2.6.23-rc1~844 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=132e4b0a049c39337c535501561b8301c7f2b202;p=linux-2.6-omap-h63xx.git cdrom: replace hard-coded constants by kernel.h macro. Signed-off-by: Robert P. J. Day Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index f50f04bdbc1..2b641b176e7 100644 --- a/include/linux/cdrom.h +++ b/include/linux/cdrom.h @@ -414,8 +414,8 @@ struct cdrom_generic_command #define CDO_CHECK_TYPE 0x10 /* check type on open for data */ /* Special codes used when specifying changer slots. */ -#define CDSL_NONE ((int) (~0U>>1)-1) -#define CDSL_CURRENT ((int) (~0U>>1)) +#define CDSL_NONE (INT_MAX-1) +#define CDSL_CURRENT INT_MAX /* For partition based multisession access. IDE can handle 64 partitions * per drive - SCSI CD-ROM's use minors to differentiate between the