staging: vme_user: fix check blank lines not necessary
authorAlexon Oliveira <alexondunkan@gmail.com>
Mon, 14 Aug 2023 21:10:52 +0000 (18:10 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:47:28 +0000 (15:47 +0200)
Fixed all CHECK: Blank lines aren't necessary after an open brace '{'
and CHECK: Blank lines aren't necessary before a close brace '}'
as reported by checkpatch to adhere to the Linux kernel
coding-style guidelines.

Signed-off-by: Alexon Oliveira <alexondunkan@gmail.com>
Link: https://lore.kernel.org/r/ZNqYXAe/wIRl8qEe@alolivei-thinkpadt480s.gru.csb
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme.c

index 5eb0d78..bbf82b1 100644 (file)
@@ -308,7 +308,6 @@ struct vme_resource *vme_slave_request(struct vme_dev *vdev, u32 address,
                if (((slave_image->address_attr & address) == address) &&
                    ((slave_image->cycle_attr & cycle) == cycle) &&
                    (slave_image->locked == 0)) {
-
                        slave_image->locked = 1;
                        mutex_unlock(&slave_image->mtx);
                        allocated_image = slave_image;
@@ -510,7 +509,6 @@ struct vme_resource *vme_master_request(struct vme_dev *vdev, u32 address,
                    ((master_image->cycle_attr & cycle) == cycle) &&
                    ((master_image->width_attr & dwidth) == dwidth) &&
                    (master_image->locked == 0)) {
-
                        master_image->locked = 1;
                        spin_unlock(&master_image->lock);
                        allocated_image = master_image;
@@ -682,7 +680,6 @@ ssize_t vme_master_read(struct vme_resource *resource, void *buf, size_t count,
                count = length - offset;
 
        return bridge->master_read(image, buf, count, offset);
-
 }
 EXPORT_SYMBOL(vme_master_read);
 
@@ -887,7 +884,6 @@ struct vme_resource *vme_dma_request(struct vme_dev *vdev, u32 route)
                mutex_lock(&dma_ctrlr->mtx);
                if (((dma_ctrlr->route_attr & route) == route) &&
                    (dma_ctrlr->locked == 0)) {
-
                        dma_ctrlr->locked = 1;
                        mutex_unlock(&dma_ctrlr->mtx);
                        allocated_ctrlr = dma_ctrlr;