Skip to contentSkip to conversation

repost: cciss: change cciss_open for consistency

PATCH In review Mike Miller (OS Dev) 1 participant 1 message Nov 6, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/12 repost: cciss: change cciss_open for consistency

PATCH 7/11

This patch changes our open to test for drv->heads like we do in other places in the driver. Mostly for consistency.
Please consider this for inclusion.

Thanks,
mikem

------------------------------------------------------------------------------------------
---

 drivers/block/cciss.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/block/cciss.c renamed from drivers/block/cciss.c~cciss_open_fix_for_lx2619-rc4 +1 -1
diff -puN drivers/block/cciss.c~cciss_open_fix_for_lx2619-rc4 drivers/block/cciss.c
@@ -494,7 +494,7 @@ static int cciss_open(struct inode *inod
 	 * 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) {

_