diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-11-04 01:39:27 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-06 11:04:39 -0500 |
commit | 75d7c0b04c552a96de0e09ce5b892fa2e5592c5a (patch) | |
tree | bf7dd3ebb473fb90baf49742fc4c196542ae492c | |
parent | b7d9f9ca9e5584734b7dbc1ba8bb17ef04ffad59 (diff) | |
download | u-boot-imx-75d7c0b04c552a96de0e09ce5b892fa2e5592c5a.zip u-boot-imx-75d7c0b04c552a96de0e09ce5b892fa2e5592c5a.tar.gz u-boot-imx-75d7c0b04c552a96de0e09ce5b892fa2e5592c5a.tar.bz2 |
dma: keystone_nav: remove spurious qm_cfg verification
The verification qm_cfg existence is done at ksnav_init().
So, there is no need to verify it after initialization.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
-rw-r--r-- | drivers/dma/keystone_nav.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/dma/keystone_nav.c b/drivers/dma/keystone_nav.c index 77707c2..dfca75a 100644 --- a/drivers/dma/keystone_nav.c +++ b/drivers/dma/keystone_nav.c @@ -81,9 +81,6 @@ void qm_close(void) { u32 j; - if (qm_cfg == NULL) - return; - queue_close(qm_cfg->qpool_num); qm_cfg->mngr_cfg->link_ram_base0 = 0; @@ -105,9 +102,6 @@ void qm_push(struct qm_host_desc *hd, u32 qnum) { u32 regd; - if (!qm_cfg) - return; - cpu_to_bus((u32 *)hd, sizeof(struct qm_host_desc)/4); regd = (u32)hd | ((sizeof(struct qm_host_desc) >> 4) - 1); writel(regd, &qm_cfg->queue[qnum].ptr_size_thresh); @@ -127,9 +121,6 @@ struct qm_host_desc *qm_pop(u32 qnum) { u32 uhd; - if (!qm_cfg) - return NULL; - uhd = readl(&qm_cfg->queue[qnum].ptr_size_thresh) & ~0xf; if (uhd) cpu_to_bus((u32 *)uhd, sizeof(struct qm_host_desc)/4); @@ -139,9 +130,6 @@ struct qm_host_desc *qm_pop(u32 qnum) struct qm_host_desc *qm_pop_from_free_pool(void) { - if (!qm_cfg) - return NULL; - return qm_pop(qm_cfg->qpool_num); } |