diff options
author | Mike Miller <mike.miller@hp.com> | 2006-12-07 07:35:08 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 19:39:30 +0300 |
commit | 7a06f789e0a1b46e4ed2a68f885cbe5ff74a34d6 (patch) | |
tree | 65577874417e03e71321a4fe0266461dca2e0f03 /drivers/block | |
parent | 92c4231aef720bd5e1d634d2f7335f31277318da (diff) | |
download | linux-7a06f789e0a1b46e4ed2a68f885cbe5ff74a34d6.tar.xz |
[PATCH] cciss: change cciss_open for consistency
Change our open to test for drv->heads like we do in other places in the
driver. Mostly for consistency.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index e61279f6f26e..c8343051be9e 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -494,7 +494,7 @@ static int cciss_open(struct inode *inode, struct file *filep) * but I'm already using way to many device nodes to claim another one * for "raw controller". */ - if (drv->nr_blocks == 0) { + if (drv->heads == 0) { if (iminor(inode) != 0) { /* not node 0? */ /* if not node 0 make sure it is a partition = 0 */ if (iminor(inode) & 0x0f) { |