summaryrefslogtreecommitdiffstats
path: root/firmware/buflib.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/buflib.c')
-rw-r--r--firmware/buflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index c144088c27..3b4f522dcf 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -179,7 +179,7 @@ handle_table_shrink(struct buflib_context *ctx)
for (handle = ctx->last_handle; !(handle->alloc); handle++);
if (handle > ctx->first_free_handle)
ctx->first_free_handle = handle - 1;
- rv = handle == ctx->last_handle;
+ rv = handle != ctx->last_handle;
ctx->last_handle = handle;
return rv;
}