diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /fs/devices.c | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'fs/devices.c')
-rw-r--r-- | fs/devices.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/devices.c b/fs/devices.c index e79ea07d5..3eb269295 100644 --- a/fs/devices.c +++ b/fs/devices.c @@ -66,10 +66,6 @@ int register_chrdev(unsigned int major, const char * name, struct file_operation { if (major == 0) { for (major = MAX_CHRDEV-1; major > 0; major--) { - if (chrdevs[major].fops == fops) - return major; - } - for (major = MAX_CHRDEV-1; major > 0; major--) { if (chrdevs[major].fops == NULL) { chrdevs[major].name = name; chrdevs[major].fops = fops; @@ -91,10 +87,6 @@ int register_blkdev(unsigned int major, const char * name, struct file_operation { if (major == 0) { for (major = MAX_BLKDEV-1; major > 0; major--) { - if (blkdevs[major].fops == fops) - return major; - } - for (major = MAX_BLKDEV-1; major > 0; major--) { if (blkdevs[major].fops == NULL) { blkdevs[major].name = name; blkdevs[major].fops = fops; |