aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2018-02-18 22:02:45 +0100
committerGreg Kroah-Hartman <[email protected]>2018-02-28 15:29:59 +0100
commit4238c00bb154be840c11540a81c5e99faa06a631 (patch)
tree2db749fed2e7ee6bb7638d3395bda7eac785a79f /scripts/bpf_helpers_doc.py
parent437768962f754d9501e5ba4d98b1f2a89dc62028 (diff)
serial: imx: simplify tracking of dma being initialized
The .dma_is_inited member is only set to a value != 0 when the port's startup function calls imx_uart_dma_init(). On shutdown of the port imx_uart_dma_exit is called which sets the value back to 0. So .dma_is_inited is always 0 when imx_startup() is called (assuming .startup() and .shutdown() are correctly balanced) and the check for !sport->dma_is_inited can go away. This allows to replace .dma_is_inited by a variable local to imx_startup. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Shawn Guo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions