diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-07-15 23:41:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 09:05:48 -0700 |
commit | 132e4b0a049c39337c535501561b8301c7f2b202 (patch) | |
tree | 13a1cd5ca45f1438c160d570222aa3ae86e5c45d /include/linux/cdrom.h | |
parent | 4e44f3497d41db4c3b9051c61410dee8ae4fb49c (diff) | |
download | linux-stable-132e4b0a049c39337c535501561b8301c7f2b202.tar.gz linux-stable-132e4b0a049c39337c535501561b8301c7f2b202.tar.bz2 linux-stable-132e4b0a049c39337c535501561b8301c7f2b202.zip |
cdrom: replace hard-coded constants by kernel.h macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cdrom.h')
-rw-r--r-- | include/linux/cdrom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index f50f04bdbc16..2b641b176e7f 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 |