From 21747990e8bc92a16294ff35361b9d92d933f487 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Fri, 15 Feb 2008 13:41:32 -0800 Subject: [PATCH] --- yaml --- r: 86022 b: refs/heads/master c: 5d44b414daa8c1d8551aed6130d86d54175db43f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/libata.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a7dfdb52fd5d..fd63a6e8beaf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 332673257056d8be8a69d759eda90a799af5472d +refs/heads/master: 5d44b414daa8c1d8551aed6130d86d54175db43f diff --git a/trunk/include/linux/libata.h b/trunk/include/linux/libata.h index 2e098f940cec..ce7603a73156 100644 --- a/trunk/include/linux/libata.h +++ b/trunk/include/linux/libata.h @@ -1197,7 +1197,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 (++link < ap->nr_pmp_links + ap->pmp_link) return link; return NULL; }