staging: comedi: Remove a newline inside a dereference
authorEisha Chen-yen-su <chenyensu0@gmail.com>
Mon, 19 Feb 2018 16:04:22 +0000 (17:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Feb 2018 16:57:43 +0000 (17:57 +0100)
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: Eisha Chen-yen-su <chenyensu0@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c

index b657bee..c007500 100644 (file)
@@ -1488,11 +1488,10 @@ static int alloc_and_init_dma_members(struct comedi_device *dev)
        for (i = 0; i < AO_DMA_RING_COUNT; i++) {
                if (ao_cmd_is_supported(board)) {
                        devpriv->ao_buffer[i] =
-                               dma_alloc_coherent(&pcidev->dev,
-                                                  DMA_BUFFER_SIZE,
-                                                  &devpriv->
-                                                  ao_buffer_bus_addr[i],
-                                                  GFP_KERNEL);
+                           dma_alloc_coherent(&pcidev->dev,
+                                              DMA_BUFFER_SIZE,
+                                              &devpriv->ao_buffer_bus_addr[i],
+                                              GFP_KERNEL);
                        if (!devpriv->ao_buffer[i])
                                return -ENOMEM;
                }