Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 692f6375 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] davinci: remove an unneeded check



We don't need to check "ret", we know it's zero.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 271430ef
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -442,11 +442,10 @@ static int vpfe_config_image_format(struct vpfe_device *vpfe_dev,
		return ret;

	/* Update the values of sizeimage and bytesperline */
	if (!ret) {
	pix->bytesperline = ccdc_dev->hw_ops.get_line_length();
	pix->sizeimage = pix->bytesperline * pix->height;
	}
	return ret;

	return 0;
}

static int vpfe_initialize_device(struct vpfe_device *vpfe_dev)