From ad52498014dd53584ccc8abc727916fec52f6df8 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 18 Apr 2020 22:24:27 -0700 Subject: [PATCH] [clang-tidy] fix misleading identation Found with readability-misleading-indentation Signed-off-by: Rosen Penev --- disk-utils/fdisk-list.c | 7 ++++--- lib/timeutils.c | 2 +- sys-utils/tunelp.c | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/disk-utils/fdisk-list.c b/disk-utils/fdisk-list.c index 6bc52d7049..834c7b4e93 100644 --- a/disk-utils/fdisk-list.c +++ b/disk-utils/fdisk-list.c @@ -201,9 +201,10 @@ void list_disklabel(struct fdisk_context *cxt) if (fdisk_partition_has_wipe(cxt, pa)) { if (!post) fdisk_info(cxt, ""); /* line break */ - fdisk_info(cxt, _("Filesystem/RAID signature on partition %zu will be wiped."), - fdisk_partition_get_partno(pa) + 1); - post++; + + fdisk_info(cxt, _("Filesystem/RAID signature on partition %zu will be wiped."), + fdisk_partition_get_partno(pa) + 1); + post++; } } diff --git a/lib/timeutils.c b/lib/timeutils.c index 96485045be..8b443cdfb0 100644 --- a/lib/timeutils.c +++ b/lib/timeutils.c @@ -355,7 +355,7 @@ int parse_timestamp(const char *t, usec_t *usec) int get_gmtoff(const struct tm *tp) { if (tp->tm_isdst < 0) - return 0; + return 0; #if HAVE_TM_GMTOFF return tp->tm_gmtoff; diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index b1e7f75df5..731acd14ec 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -292,8 +292,7 @@ int main(int argc, char **argv) printf(_(", error")); printf("\n"); } - } else - if (ioctl(fd, cmds->op - offset, cmds->val) < 0) + } else if (ioctl(fd, cmds->op - offset, cmds->val) < 0) warn(_("ioctl failed")); cmdst = cmds; cmds = cmds->next; -- 2.47.3