Commit 75d7c0b04c552a96de0e09ce5b892fa2e5592c5a
Committed by
Tom Rini
1 parent
b7d9f9ca9e
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 0 additions and 12 deletions Side-by-side Diff
drivers/dma/keystone_nav.c
... | ... | @@ -81,9 +81,6 @@ |
81 | 81 | { |
82 | 82 | u32 j; |
83 | 83 | |
84 | - if (qm_cfg == NULL) | |
85 | - return; | |
86 | - | |
87 | 84 | queue_close(qm_cfg->qpool_num); |
88 | 85 | |
89 | 86 | qm_cfg->mngr_cfg->link_ram_base0 = 0; |
... | ... | @@ -105,9 +102,6 @@ |
105 | 102 | { |
106 | 103 | u32 regd; |
107 | 104 | |
108 | - if (!qm_cfg) | |
109 | - return; | |
110 | - | |
111 | 105 | cpu_to_bus((u32 *)hd, sizeof(struct qm_host_desc)/4); |
112 | 106 | regd = (u32)hd | ((sizeof(struct qm_host_desc) >> 4) - 1); |
113 | 107 | writel(regd, &qm_cfg->queue[qnum].ptr_size_thresh); |
... | ... | @@ -127,9 +121,6 @@ |
127 | 121 | { |
128 | 122 | u32 uhd; |
129 | 123 | |
130 | - if (!qm_cfg) | |
131 | - return NULL; | |
132 | - | |
133 | 124 | uhd = readl(&qm_cfg->queue[qnum].ptr_size_thresh) & ~0xf; |
134 | 125 | if (uhd) |
135 | 126 | cpu_to_bus((u32 *)uhd, sizeof(struct qm_host_desc)/4); |
... | ... | @@ -139,9 +130,6 @@ |
139 | 130 | |
140 | 131 | struct qm_host_desc *qm_pop_from_free_pool(void) |
141 | 132 | { |
142 | - if (!qm_cfg) | |
143 | - return NULL; | |
144 | - | |
145 | 133 | return qm_pop(qm_cfg->qpool_num); |
146 | 134 | } |
147 | 135 |