Commit cc62f816 authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su Committed by Greg Kroah-Hartman

staging: comedi: Remove a newline inside a dereference

Remove a new line inside a dereference so that it is not on
multiple lines.
And avoid making the line go over 80 columns by moving the whole
dma_alloc_coherent() call back 4 columns. Problem found with
checkpatch.
Signed-off-by: default avatarEisha Chen-yen-su <chenyensu0@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f782497c
...@@ -1488,11 +1488,10 @@ static int alloc_and_init_dma_members(struct comedi_device *dev) ...@@ -1488,11 +1488,10 @@ static int alloc_and_init_dma_members(struct comedi_device *dev)
for (i = 0; i < AO_DMA_RING_COUNT; i++) { for (i = 0; i < AO_DMA_RING_COUNT; i++) {
if (ao_cmd_is_supported(board)) { if (ao_cmd_is_supported(board)) {
devpriv->ao_buffer[i] = devpriv->ao_buffer[i] =
dma_alloc_coherent(&pcidev->dev, dma_alloc_coherent(&pcidev->dev,
DMA_BUFFER_SIZE, DMA_BUFFER_SIZE,
&devpriv-> &devpriv->ao_buffer_bus_addr[i],
ao_buffer_bus_addr[i], GFP_KERNEL);
GFP_KERNEL);
if (!devpriv->ao_buffer[i]) if (!devpriv->ao_buffer[i])
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment