Skip to contentSkip to conversation

+ drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 31, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 31 Oct 2013 14:40:14 -0700

The patch titled
Subject: drivers/block/cciss.c: return 0 from driver probe function on success, not 1
has been added to the -mm tree. Its filename is
drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Stephen M. Cameron <[email protected]>
Subject: drivers/block/cciss.c: return 0 from driver probe function on success, not 1

A return value of 1 is interpreted as an error.

---

 drivers/block/cciss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/cciss.c renamed from drivers/block/cciss.c~drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1 +1 -1
diff -puN drivers/block/cciss.c~drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1 drivers/block/cciss.c
@@ -5183,7 +5183,7 @@ reinit_after_soft_reset:
 	rebuild_lun_table(h, 1, 0);
 	cciss_engage_scsi(h);
 	h->busy_initializing = 0;
-	return 1;
+	return 0;
 
 clean4:
 	cciss_free_cmd_pool(h);

_

Patches currently in -mm which might be from [email protected] are

drivers-block-ccissc-return-0-from-driver-probe-function-on-success-not-1.patch