]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lslogins: remove unnecessary brackets
authorKarel Zak <kzak@redhat.com>
Tue, 31 Mar 2020 11:12:11 +0000 (13:12 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Mar 2020 11:12:11 +0000 (13:12 +0200)
Just to be consistent with the rest of the code.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/lslogins.c

index c687e58e8955fc1e4a6f0c49fc4fba1510428413..6fd0f96740e0d1c5a0d6aefa16f0222c70cf5c83 100644 (file)
@@ -784,9 +784,8 @@ static struct lslogins_user *get_user_info(struct lslogins_control *ctl, const c
                                mem2strcpy(user->last_tty, user_wtmp->ut_line,
                                                sizeof(user_wtmp->ut_line),
                                                sizeof(user_wtmp->ut_line) + 1);;
-                       }  else {
+                       }  else
                                get_lastlog(ctl, user->uid, user->last_tty, LASTLOG_LINE);
-                       }
                        break;
                case COL_LAST_HOSTNAME:
                        user->last_hostname = xcalloc(1, sizeof(user_wtmp->ut_host) + 1);