Эх сурвалжийг харах

video: driver: fix driver tip compilation

add braces to avoid dangling else.

Change-Id: I910112cf67a8d3f9ac05e17dbbf3a9f6865e2433
Signed-off-by: Darshana Patil <[email protected]>
Darshana Patil 4 жил өмнө
parent
commit
ca83b4c74c

+ 4 - 3
driver/vidc/src/msm_vidc_vb2.c

@@ -128,16 +128,17 @@ int msm_vidc_queue_setup(struct vb2_queue *q,
 		inst->buffers.output_meta.actual_count = *num_buffers;
 	}
 
-	if (port == INPUT_PORT || port == OUTPUT_PORT)
+	if (port == INPUT_PORT || port == OUTPUT_PORT) {
 		sizes[0] = inst->fmts[port].fmt.pix_mp.plane_fmt[0].sizeimage;
-	else if (port == OUTPUT_META_PORT)
+	} else if (port == OUTPUT_META_PORT) {
 		sizes[0] = inst->fmts[port].fmt.meta.buffersize;
-	else if (port == INPUT_META_PORT)
+	} else if (port == INPUT_META_PORT) {
 		if (inst->capabilities->cap[SUPER_FRAME].value)
 			sizes[0] = inst->capabilities->cap[SUPER_FRAME].value *
 				inst->fmts[port].fmt.meta.buffersize;
 		else
 			sizes[0] = inst->fmts[port].fmt.meta.buffersize;
+	}
 
 	i_vpr_h(inst,
 		"queue_setup: type %d num_buffers %d sizes[0] %d\n",