Commit 11231786 authored by Thomas Huth's avatar Thomas Huth Committed by Michael Tokarev
Browse files

tests/i44fx-test: No need for zeroing memory before memset



Change a g_malloc0 into g_malloc since the following
memset fills the whole buffer anyway.

Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
Reviewed-by: default avatarLaszlo Ersek <lersek@redhat.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent a6c6d827
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ static void write_area(uint32_t start, uint32_t end, uint8_t value)
    uint32_t size = end - start + 1;
    uint8_t *data;

    data = g_malloc0(size);
    data = g_malloc(size);
    memset(data, value, size);
    memwrite(start, data, size);