summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:19:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:19:44 +0200
commit521ffee5262294a87395c52dc54787b2bb159092 (patch)
tree6de805fea76d18af90f7fe288aafd7941d8a64b5
parent3e74fd9d059d96ec0d4cce0e8e7dc0dd2dd3d148 (diff)
downloadbarebox-521ffee5262294a87395c52dc54787b2bb159092.tar.gz
video: imx-ipu-v3: remove unneeded 'dmfc' check
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Suggested-by: Fabio Estevam <festevam@gmail.com>
-rw-r--r--drivers/video/imx-ipu-v3/ipu-dmfc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/video/imx-ipu-v3/ipu-dmfc.c b/drivers/video/imx-ipu-v3/ipu-dmfc.c
index 7b54e25..29c4bb4 100644
--- a/drivers/video/imx-ipu-v3/ipu-dmfc.c
+++ b/drivers/video/imx-ipu-v3/ipu-dmfc.c
@@ -153,9 +153,6 @@ static int ipu_dmfc_setup_channel(struct dmfc_channel *dmfc, int slots,
"dmfc: using %d slots starting from segment %d for IPU channel %d\n",
slots, segment, dmfc->data->ipu_channel);
- if (!dmfc)
- return -EINVAL;
-
switch (slots) {
case 1:
field = DMFC_FIFO_SIZE_64;