Messages in this thread | | | Date | Sat, 27 Sep 2003 12:39:33 +0100 | From | Christoph Hellwig <> | Subject | Re: [PATCH] helper for device list traversal |
| |
On Sat, Sep 27, 2003 at 01:34:15PM +0200, Geert Uytterhoeven wrote: > Is this what we should use to fix the currently broken list traversal[*] in > drivers/scsi/{a2091,gvp11,53c7xx}.c?
where does that [*] refere to?
> Currently ut uses > > struct Scsi_Host *instance; > for (instance = first_instance; instance && > instance->hostt == xxx_template; instance = instance->next) > > bust Scsi_Host.next was removed a while ago...
Most users of that construct want to use scsi_lookup_host (if they looked for a specific host struct).
Above patch is for scsi_device list traversal, not Scsi_Host.
- 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/
| |