if (ctx->target == NULL)
                        ctx->offsets[i] = ctx->idx;
 
-               /* If unsuccesfull, return with error code */
+               /* If unsuccesful, return with error code */
                if (ret)
                        return ret;
        }
         * for jit, although it can decrease the size of the image.
         *
         * As each arm instruction is of length 32bit, we are translating
-        * number of JITed intructions into the size required to store these
+        * number of JITed instructions into the size required to store these
         * JITed code.
         */
        image_size = sizeof(u32) * ctx.idx;