From 43d333c70834d524792e135cc15e3aa5d52649de Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Mar 2013 15:07:00 +1100 Subject: [PATCH] loop-cleanup-partitions-when-detaching-loop-device-checkpatch-fixes ERROR: that open brace { should be on the previous line #32: FILE: drivers/block/loop.c:1051: + if (bdev) + { WARNING: line over 80 characters #39: FILE: drivers/block/loop.c:1058: + disk_part_iter_init(&piter, bdev->bd_disk, DISK_PITER_INCL_EMPTY); total: 1 errors, 1 warnings, 26 lines checked ./patches/loop-cleanup-partitions-when-detaching-loop-device.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Jens Axboe Cc: Phillip Susi Signed-off-by: Andrew Morton --- drivers/block/loop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 738cb0c6f9c3..e9aaddba763f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1048,8 +1048,7 @@ static int loop_clr_fd(struct loop_device *lo) if (!part_shift) lo->lo_disk->flags |= GENHD_FL_NO_PART_SCAN; mutex_unlock(&lo->lo_ctl_mutex); - if (bdev) - { + if (bdev) { struct disk_part_iter piter; struct hd_struct *part; -- 2.39.5