return err;
 
 #ifdef USE_INPUT_SYSTEM_VERSION_2401
-#ifndef ISP2401
-       if (args->in_frame)
-       {
-               pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num);
-               if (!pipe)
-                       return IA_CSS_ERR_INTERNAL_ERROR;
-               ia_css_get_crop_offsets(pipe, &args->in_frame->info);
-       } else if (&binary->in_frame_info)
-       {
+       if (stage == 0) {
                pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num);
                if (!pipe)
                        return IA_CSS_ERR_INTERNAL_ERROR;
-               ia_css_get_crop_offsets(pipe, &binary->in_frame_info);
-#else
-       if (stage == 0)
-       {
-               if (args->in_frame) {
-                       pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num);
-                       if (!pipe)
-                               return IA_CSS_ERR_INTERNAL_ERROR;
+
+               if (args->in_frame)
                        ia_css_get_crop_offsets(pipe, &args->in_frame->info);
-               } else if (&binary->in_frame_info) {
-                       pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num);
-                       if (!pipe)
-                               return IA_CSS_ERR_INTERNAL_ERROR;
+               else
                        ia_css_get_crop_offsets(pipe, &binary->in_frame_info);
-               }
-#endif
        }
 #else
        (void)pipe; /*avoid build warning*/