mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix sd_find_target (v2.5.4)
@ 2002-02-13 10:17 Paul Mackerras
  0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2002-02-13 10:17 UTC (permalink / raw)
  To: linux-kernel, torvalds

This patch fixes a compile error on PPC.  It's in sd_find_target, a
function that returns a kdev_t.  Linus, please apply.

Thanks,
Paul.

diff -urN linuxppc-2.5/drivers/scsi/sd.c pmac-2.5/drivers/scsi/sd.c
--- linuxppc-2.5/drivers/scsi/sd.c	Wed Feb  6 02:23:12 2002
+++ pmac-2.5/drivers/scsi/sd.c	Mon Feb 11 16:44:52 2002
@@ -133,7 +133,7 @@
         if (dp->device != NULL && dp->device->host == host
             && dp->device->id == tgt)
             return MKDEV_SD(i);
-    return 0;
+    return NODEV;
 }
 #endif
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-13 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 10:17 [PATCH] fix sd_find_target (v2.5.4) Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®