Message ID | 1449096887-23017-7-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/irda/irlmp.c b/net/irda/irlmp.c index 98ad6ec..8ad1494 100644 --- a/net/irda/irlmp.c +++ b/net/irda/irlmp.c @@ -1876,7 +1876,7 @@ static void *irlmp_seq_hb_idx(struct irlmp_iter_state *iter, loff_t *off) for (element = hashbin_get_first(iter->hashbin); element != NULL; element = hashbin_get_next(iter->hashbin)) { - if (!off || *off-- == 0) { + if (!off || (*off)-- == 0) { /* NB: hashbin left locked */ return element; }