From a90e74c587686e9034319b2388ff5c99e7d4ac3b Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 9 Apr 2017 03:05:54 +0300 Subject: [PATCH] sbin/mount_hammer: Cleanup blocks with a single statement This commit basically does the same as what Linux kernel's coding style mentions for braces, which is basically the same with BSDs. https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst#3-placing-braces-and-spaces No diff in sbin/mount_hammer/mount_hammer binary when assert(3) is disabled. --- sbin/mount_hammer/mount_hammer.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sbin/mount_hammer/mount_hammer.c b/sbin/mount_hammer/mount_hammer.c index 8a60dfd6c2..d1f6897401 100644 --- a/sbin/mount_hammer/mount_hammer.c +++ b/sbin/mount_hammer/mount_hammer.c @@ -245,19 +245,16 @@ void __verify_volume(hammer_volume_ondisk_t ondisk, const char *vol_name, int vol_count) { - if (ondisk->vol_signature != HAMMER_FSBUF_VOLUME) { + if (ondisk->vol_signature != HAMMER_FSBUF_VOLUME) errx(1, "%s: Invalid volume signature %016jx", vol_name, ondisk->vol_signature); - } - if (ondisk->vol_count != vol_count) { + if (ondisk->vol_count != vol_count) errx(1, "%s: Invalid volume count %d, " "volume header says %d volumes", vol_name, vol_count, ondisk->vol_count); - } - if (ondisk->vol_rootvol != HAMMER_ROOT_VOLNO) { + if (ondisk->vol_rootvol != HAMMER_ROOT_VOLNO) errx(1, "%s: Invalid root volume# %d", vol_name, ondisk->vol_rootvol); - } } /* -- 2.11.4.GIT