MLK-20208-1 mxc IPUv3: device: Remove a piece of dead code in ipu_task_thread()
authorLiu Ying <victor.liu@nxp.com>
Tue, 26 Mar 2019 05:36:52 +0000 (13:36 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:31 +0000 (11:35 +0300)
commita40f67dee04de4d13a138edb4475138aba53638a
tree1c6375ce51deefadef989102069770330c4795d0
parentbc329c374071a48e43348849ea22230fed45a8a2
MLK-20208-1 mxc IPUv3: device: Remove a piece of dead code in ipu_task_thread()

The check on !sp_tsk0 is unnecessary in ipu_task_thread(), because the
beforehand "list_del(&sp_tsk0->node);" within the context implies sp_tsk0
is not null, otherwise, we'll dereference a null pointer earlier.

Detected by CoverityScan, CID#17842 ("Logically dead code")

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 9ad5edd076d61bc8bb3a558e523cc7b31f2c3043)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 2c4dd0cb989176b9ca71b7ee60e9cdb899f5f633)
drivers/mxc/ipu3/ipu_device.c