From: Liu Ying Date: Tue, 29 Oct 2013 04:28:52 +0000 (+0800) Subject: ENGR00285273-2 IPU dev:Remove an unnesessary check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=acbecc8056cd7804bfc41b0ad12d508e2c4c562c;p=karo-tx-linux.git 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 --- 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;