diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/libata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 2e098f940cec..ce7603a73156 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -1197,7 +1197,7 @@ static inline struct ata_link *ata_port_next_link(struct ata_link *link) | |||
1197 | return ap->pmp_link; | 1197 | return ap->pmp_link; |
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | if (++link - ap->pmp_link < ap->nr_pmp_links) | 1200 | if (++link < ap->nr_pmp_links + ap->pmp_link) |
1201 | return link; | 1201 | return link; |
1202 | return NULL; | 1202 | return NULL; |
1203 | } | 1203 | } |