Browse Source

drm/exynos: rotator: add missing braces

In the case of that only one branch of a conditional statement is
a single statement, braces are added to both branches.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Jingoo Han 11 years ago
parent
commit
5ce405be56
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/gpu/drm/exynos/exynos_drm_rotator.c

+ 2 - 1
drivers/gpu/drm/exynos/exynos_drm_rotator.c

@@ -158,8 +158,9 @@ static irqreturn_t rotator_irq_handler(int irq, void *arg)
 			rot->cur_buf_id[EXYNOS_DRM_OPS_DST];
 		queue_work(ippdrv->event_workq,
 			(struct work_struct *)event_work);
-	} else
+	} else {
 		DRM_ERROR("the SFR is set illegally\n");
+	}
 
 	return IRQ_HANDLED;
 }