Skip to content

Commit c790218

Browse files
Jacko Dirkspopcornmix
Jacko Dirks
authored andcommitted
media: bcm2835: unicam: Fix uninitialized warning
Signed-off-by: Jacko Dirks <[email protected]>
1 parent 19feead commit c790218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/bcm2835/bcm2835-unicam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ const struct unicam_fmt *get_first_supported_format(struct unicam_device *dev)
10011001
{
10021002
struct v4l2_subdev_mbus_code_enum mbus_code;
10031003
const struct unicam_fmt *fmt = NULL;
1004-
int ret;
1004+
int ret = 0;
10051005
int j;
10061006

10071007
for (j = 0; ret != -EINVAL && ret != -ENOIOCTLCMD; ++j) {

0 commit comments

Comments
 (0)