Commit f8f530b
dmaengine: qcom: gpi: clean up the IRQ disable/enable in gpi_reset_chan()
The calls write_lock/unlock_irq() disables and re-enables the IRQs.
Calling spin_lock_irqsave() and spin_lock_restore() when the IRQs are
already disabled doesn't do anything and just makes the code confusing.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/8be473eb-65e0-42b4-b574-e61c3a7f62d8@moroto.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent 8ddad55 commit f8f530b
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
1195 | 1194 | | |
1196 | 1195 | | |
1197 | 1196 | | |
| |||
1214 | 1213 | | |
1215 | 1214 | | |
1216 | 1215 | | |
1217 | | - | |
| 1216 | + | |
1218 | 1217 | | |
1219 | | - | |
| 1218 | + | |
1220 | 1219 | | |
1221 | 1220 | | |
1222 | 1221 | | |
| |||
0 commit comments