diff options
author | Yang Zhang <kthreadd@gmail.com> | 2010-12-17 09:00:18 +0100 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-12-17 09:00:18 +0100 |
commit | e61eb2e93fe86931d46831752a82dab25a5335ca (patch) | |
tree | 631aeb9bf8614903972a6a9945040a4d528f1029 /fs/char_dev.c | |
parent | block: convert !IS_ERR(p) && p to !IS_ERR_NOR_NULL(p) (diff) | |
download | linux-e61eb2e93fe86931d46831752a82dab25a5335ca.tar.xz linux-e61eb2e93fe86931d46831752a82dab25a5335ca.zip |
fs/block: type signature of major_to_index(int) to major_to_index(unsigned)
The major/minor device numbers are always defined and used as `unsigned'.
Signed-off-by: Yang Zhang <kthreadd@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r-- | fs/char_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index e5b9df993b93..143f0207c7eb 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c @@ -59,7 +59,7 @@ static struct char_device_struct { } *chrdevs[CHRDEV_MAJOR_HASH_SIZE]; /* index in the above */ -static inline int major_to_index(int major) +static inline int major_to_index(unsigned major) { return major % CHRDEV_MAJOR_HASH_SIZE; } |