bool was returned from function which returns int
thus compiler was throwing warning. This patch
resolves same.
Signed-off-by: Tejas Upadhyay <tejasu@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
struct xilinx_drm_dp_sub_layer *layer;
const char *string;
u32 fmt, i, size;
- bool ret;
+ int ret;
ret = of_property_read_string(node, "xlnx,output-fmt", &string);
if (ret < 0) {
full_range_offsets[i]);
}
- ret = of_property_read_bool(node, "xlnx,vid-primary");
- if (ret)
+ if (of_property_read_bool(node, "xlnx,vid-primary"))
dp_sub->layers[XILINX_DRM_DP_SUB_LAYER_VID].primary = true;
else
dp_sub->layers[XILINX_DRM_DP_SUB_LAYER_GFX].primary = true;