context MAINTENANCE redundant cast removed
diff --git a/src/context.c b/src/context.c
index 8c889a1..6aa42c1 100644
--- a/src/context.c
+++ b/src/context.c
@@ -566,7 +566,7 @@
 {
     LY_CHECK_ARG_RET(ctx, ctx, index, NULL);
 
-    if (*index < (unsigned)ctx->list.count) {
+    if (*index < ctx->list.count) {
         return ctx->list.objs[(*index)++];
     } else {
         return NULL;