summaryrefslogtreecommitdiffstats
path: root/kernel/net/irda/irlmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/irda/irlmp.c')
-rw-r--r--kernel/net/irda/irlmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/irda/irlmp.c b/kernel/net/irda/irlmp.c
index a26c401ef..43964594a 100644
--- a/kernel/net/irda/irlmp.c
+++ b/kernel/net/irda/irlmp.c
@@ -1839,7 +1839,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;
}