summaryrefslogtreecommitdiff
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)
179 for (handle = ctx->last_handle; !(handle->alloc); handle++); 179 for (handle = ctx->last_handle; !(handle->alloc); handle++);
180 if (handle > ctx->first_free_handle) 180 if (handle > ctx->first_free_handle)
181 ctx->first_free_handle = handle - 1; 181 ctx->first_free_handle = handle - 1;
182 rv = handle == ctx->last_handle; 182 rv = handle != ctx->last_handle;
183 ctx->last_handle = handle; 183 ctx->last_handle = handle;
184 return rv; 184 return rv;
185} 185}