Skip to content

Commit 03d5937

Browse files
AlexonOliveiragregkh
authored andcommitted
staging: vme_user: fix check blank lines not necessary
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 <[email protected]> Link: https://lore.kernel.org/r/ZNqYXAe/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent be6cded commit 03d5937

File tree

1 file changed

+0
-4
lines changed
  • drivers/staging/vme_user

1 file changed

+0
-4
lines changed

drivers/staging/vme_user/vme.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ struct vme_resource *vme_slave_request(struct vme_dev *vdev, u32 address,
308308
if (((slave_image->address_attr & address) == address) &&
309309
((slave_image->cycle_attr & cycle) == cycle) &&
310310
(slave_image->locked == 0)) {
311-
312311
slave_image->locked = 1;
313312
mutex_unlock(&slave_image->mtx);
314313
allocated_image = slave_image;
@@ -510,7 +509,6 @@ struct vme_resource *vme_master_request(struct vme_dev *vdev, u32 address,
510509
((master_image->cycle_attr & cycle) == cycle) &&
511510
((master_image->width_attr & dwidth) == dwidth) &&
512511
(master_image->locked == 0)) {
513-
514512
master_image->locked = 1;
515513
spin_unlock(&master_image->lock);
516514
allocated_image = master_image;
@@ -682,7 +680,6 @@ ssize_t vme_master_read(struct vme_resource *resource, void *buf, size_t count,
682680
count = length - offset;
683681

684682
return bridge->master_read(image, buf, count, offset);
685-
686683
}
687684
EXPORT_SYMBOL(vme_master_read);
688685

@@ -887,7 +884,6 @@ struct vme_resource *vme_dma_request(struct vme_dev *vdev, u32 route)
887884
mutex_lock(&dma_ctrlr->mtx);
888885
if (((dma_ctrlr->route_attr & route) == route) &&
889886
(dma_ctrlr->locked == 0)) {
890-
891887
dma_ctrlr->locked = 1;
892888
mutex_unlock(&dma_ctrlr->mtx);
893889
allocated_ctrlr = dma_ctrlr;

0 commit comments

Comments
 (0)