]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00285273-2 IPU dev:Remove an unnesessary check
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 29 Oct 2013 04:28:52 +0000 (12:28 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:04:01 +0000 (18:04 +0200)
This patch removes an unnesessary check before setting
task ID to simplify the code.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/mxc/ipu3/ipu_device.c

index 1df0005d864a3a59c770b00366ed528e4008a2d5..e20241476424ed1479f229b19de6b364d8a5d24e 100644 (file)
@@ -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;