From acbecc8056cd7804bfc41b0ad12d508e2c4c562c Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Tue, 29 Oct 2013 12:28:52 +0800 Subject: [PATCH] ENGR00285273-2 IPU dev:Remove an unnesessary check This patch removes an unnesessary check before setting task ID to simplify the code. Signed-off-by: Liu Ying --- drivers/mxc/ipu3/ipu_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mxc/ipu3/ipu_device.c b/drivers/mxc/ipu3/ipu_device.c index 1df0005d864a..e20241476424 100644 --- a/drivers/mxc/ipu3/ipu_device.c +++ b/drivers/mxc/ipu3/ipu_device.c @@ -1162,8 +1162,7 @@ static int prepare_task(struct ipu_task_entry *t) return -EINVAL; if (t->set.mode & VDI_MODE) { - if (t->task_id != IPU_TASK_ID_VF) - t->task_id = IPU_TASK_ID_VF; + t->task_id = IPU_TASK_ID_VF; t->set.task = VDI_VF; if (t->set.mode & ROT_MODE) t->set.task |= ROT_VF; -- 2.39.5