/* returns: 0, on ignore not found value, on ignore found  */
static int fit_image_hash_get_ignore(const void *fit, int noffset, int *ignore)
/* returns: 0, on ignore not found value, on ignore found  */
static int fit_image_hash_get_ignore(const void *fit, int noffset, int *ignore)
{
	int len;
	int *value;
	value = (int *)fdt_getprop(fit, noffset, FIT_IGNORE_PROP, &len);
	if (value == NULL || len != sizeof(int))
		*ignore = 0;
	else
		*ignore = *value;
	return 0;
}