Because the address of an object is never null and the if
statement will never true so remove the dead code
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
return -EINVAL;
fmt = &mxc_isi_input_formats[f->index];
- if (!fmt)
- return -EINVAL;
-
strncpy(f->description, fmt->name, sizeof(f->description) - 1);
f->pixelformat = fmt->fourcc;
return -EINVAL;
fmt = &mxc_isi_out_formats[f->index];
- if (!fmt)
- return -EINVAL;
-
strncpy(f->description, fmt->name, sizeof(f->description) - 1);
f->pixelformat = fmt->fourcc;