  
    cur_frame_data = frame_data;
  
    cur_rgb_buf = vipc_server->get_buffer(rgb_type);
    cur_rgb_idx = cur_rgb_buf->idx;
  
    cl_event debayer_event;
    cl_mem camrabuf_cl = camera_bufs[cur_buf_idx].buf_cl;
    if (camera_state->ci.bayer) {
      CL_CHECK(clSetKernelArg(krnl_debayer, 0, sizeof(cl_mem), &camrabuf_cl));
 
</s> remove     assert(cur_rgb_buf->len >= frame_size);
 </s> add  </s> remove   cur_yuv_idx = cur_yuv_buf->idx;
  yuv_metas[cur_yuv_idx] = frame_data;
 </s> add   yuv_metas[cur_yuv_buf->idx] = frame_data; </s> remove   frame_size = ci->frame_height * ci->frame_stride;
 </s> add   const int frame_size = ci->frame_height * ci->frame_stride; </s> remove   int cur_yuv_idx, cur_rgb_idx;
 </s> add  </s> remove   size_t yuv_buf_size;
 </s> add 
  
    cur_frame_data = frame_data;
  
    cur_rgb_buf = vipc_server->get_buffer(rgb_type);

  
    cl_event debayer_event;
    cl_mem camrabuf_cl = camera_bufs[cur_buf_idx].buf_cl;
    if (camera_state->ci.bayer) {
      CL_CHECK(clSetKernelArg(krnl_debayer, 0, sizeof(cl_mem), &camrabuf_cl));
keep keep keep keep replace keep keep keep keep keep
 CameraBuf: removed unused variables (#19735) 
selfdrive/camerad/cameras/camera_common.cc