imx-drm: ipu-dmfc: Remove unneeded 'dmfc' check
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 28 Feb 2014 14:39:41 +0000 (11:39 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 22:56:33 +0000 (14:56 -0800)
commitb6d8115e4ef497fde9363a72716793399a1060c2
treee740faceb91dec3454ec4a21af57ff5cfeb758c4
parent7d6069d7850f34797f7a436fb6672982302dad57
imx-drm: ipu-dmfc: Remove unneeded 'dmfc' check

Fix the following static checker warning:

drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c:164 ipu_dmfc_setup_channel() warn: variable dereferenced before check 'dmfc' (see line 157)

As 'dmfc' could never be null, there is no need to do such check.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c