From: Rosen Penev Date: Sun, 19 Apr 2020 05:24:27 +0000 (-0700) Subject: [clang-tidy] fix misleading identation X-Git-Tag: v2.36-rc1~138^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad52498014dd53584ccc8abc727916fec52f6df8;p=thirdparty%2Futil-linux.git [clang-tidy] fix misleading identation Found with readability-misleading-indentation Signed-off-by: Rosen Penev --- 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;