Skip to content

Commit c217e2b

Browse files
committed
Fix dmi_cache_size_2 will add unit twice.
Signed-off-by: Lichen Liu <lichliu@redhat.com>
1 parent 9ec2b11 commit c217e2b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/dmidecode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,8 +1843,6 @@ void dmi_cache_size_2(xmlNode *node, const char *tagname, u32 code)
18431843
size.l = code << 6;
18441844
size.h = code >> 26;
18451845
} else {
1846-
dmixml_AddAttribute(caches_n, "unit", "KB");
1847-
dmixml_AddTextContent(caches_n, "%i", code);
18481846
size.l = code;
18491847
size.h = 0;
18501848
}

0 commit comments

Comments
 (0)