From: Karel Zak Date: Mon, 8 Feb 2021 13:47:38 +0000 (+0100) Subject: libsmartcols: remove unnecessary code X-Git-Tag: v2.37-rc1~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f458782f14f97111139cb88ab2dbbaf5c874674e;p=thirdparty%2Futil-linux.git libsmartcols: remove unnecessary code Fixes: https://github.com/karelzak/util-linux/pull/1243 Signed-off-by: Karel Zak --- diff --git a/libsmartcols/src/calculate.c b/libsmartcols/src/calculate.c index b6137fd23f..974fc340c5 100644 --- a/libsmartcols/src/calculate.c +++ b/libsmartcols/src/calculate.c @@ -325,7 +325,7 @@ int __scols_calculate(struct libscols_table *tb, struct libscols_buffer *buf) DBG(TAB, ul_debugobj(tb, " enlarge width (last column)")); - if (!scols_column_is_right(col) && tb->termwidth - width > 0) { + if (!scols_column_is_right(col)) { col->width += tb->termwidth - width; width = tb->termwidth; }