diff options
author | Mike Miller <mike.miller@hp.com> | 2006-12-06 23:35:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:30 -0500 |
commit | 7a06f789e0a1b46e4ed2a68f885cbe5ff74a34d6 (patch) | |
tree | 65577874417e03e71321a4fe0266461dca2e0f03 /drivers/block | |
parent | 92c4231aef720bd5e1d634d2f7335f31277318da (diff) |
[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 e61279f6f26..c8343051be9 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) | |||
494 | * but I'm already using way to many device nodes to claim another one | 494 | * but I'm already using way to many device nodes to claim another one |
495 | * for "raw controller". | 495 | * for "raw controller". |
496 | */ | 496 | */ |
497 | if (drv->nr_blocks == 0) { | 497 | if (drv->heads == 0) { |
498 | if (iminor(inode) != 0) { /* not node 0? */ | 498 | if (iminor(inode) != 0) { /* not node 0? */ |
499 | /* if not node 0 make sure it is a partition = 0 */ | 499 | /* if not node 0 make sure it is a partition = 0 */ |
500 | if (iminor(inode) & 0x0f) { | 500 | if (iminor(inode) & 0x0f) { |