libsmartcols: remove unnecessary check [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2015-01-29 11:07:37 +01:00
parent 7396bdd468
commit 78ad5aaaa9
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ static int print_data(struct libscols_table *tb,
len = width;
bytes = mbs_truncate(data, &len); /* updates 'len' */
if (!data || bytes == (size_t) -1) {
if (bytes == (size_t) -1) {
bytes = len = 0;
data = NULL;
}