[PATCH] fix sd_find_target (v2.5.4)

From: Paul Mackerras (paulus@samba.org)
Date: Wed Feb 13 2002 - 05:17:59 EST


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
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:53 EST