mirror of
https://github.com/torvalds/linux.git
synced 2025-11-06 19:50:24 +02:00
A recent cleanup had the right idea to remove the initialization of the error variable, but missed the actual benefit of that, which is that we get warnings if there is a bug in it. Now we get a warning about a bug that was introduced by this cleanup: drivers/media/platform/davinci/vpfe_capture.c: In function 'vpfe_probe': drivers/media/platform/davinci/vpfe_capture.c:1992:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] This adds the missing initialization that the warning is about, and another one that was preexisting and that we did not get a warning for. That second bug has existed since the driver was first added. Fixes: |
||
|---|---|---|
| .. | ||
| ccdc_hw_device.h | ||
| dm355_ccdc.c | ||
| dm355_ccdc_regs.h | ||
| dm644x_ccdc.c | ||
| dm644x_ccdc_regs.h | ||
| isif.c | ||
| isif_regs.h | ||
| Kconfig | ||
| Makefile | ||
| vpbe.c | ||
| vpbe_display.c | ||
| vpbe_osd.c | ||
| vpbe_osd_regs.h | ||
| vpbe_venc.c | ||
| vpbe_venc_regs.h | ||
| vpfe_capture.c | ||
| vpif.c | ||
| vpif.h | ||
| vpif_capture.c | ||
| vpif_capture.h | ||
| vpif_display.c | ||
| vpif_display.h | ||
| vpss.c | ||