Harvey Harrison wrote:
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2845983..f0e1178 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1211,7 +1211,7 @@ static inline struct ata_link *ata_port_next_link(struct 
ata_link *link)
                return ap->pmp_link;
        }
- if (++link - ap->pmp_link < ap->nr_pmp_links)
+       if ((char*)++link - (char *)ap->pmp_link < ap->nr_pmp_links * 
sizeof(*link))
                return link;


I prefer the less ugly version :)

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to