Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: atomisp: add a default case at __get_frame_info()

The switch() logic there misses a break and a default case.
That makes it more prone to problems as the code change.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

+2
+2
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
··· 2691 2691 *info = p_info.output_info[1]; 2692 2692 dev_dbg(isp->dev, "getting second main frame info.\n"); 2693 2693 break; 2694 + default: 2694 2695 case ATOMISP_CSS_RAW_FRAME: 2695 2696 *info = p_info.raw_output_info; 2696 2697 dev_dbg(isp->dev, "getting raw frame info.\n"); 2698 + break; 2697 2699 } 2698 2700 dev_dbg(isp->dev, "get frame info: w=%d, h=%d, num_invalid_frames %d.\n", 2699 2701 info->res.width, info->res.height, p_info.num_invalid_frames);