gdbstub: Drop redundant memset after qemu_mallocz
PATCH 1/1 gdbstub: Drop redundant memset after qemu_mallocz
Signed-off-by Jan Kiszka <[email protected]>
---
gdbstub.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
gdbstub.c +0 -2
@@ -2274,8 +2274,6 @@ static void gdb_accept(void)setsockopt (fd,IPPROTO_TCP ,TCP_NODELAY , (char *)&val,sizeof (val)); s =qemu_mallocz (sizeof (GDBState)); - -memset (s,0 ,sizeof (GDBState)); s->c_cpu = first_cpu; s->g_cpu = first_cpu; s->fd = fd;
Anthony Liguori
AppliedQuoted 2 lines · Jan Kiszka
Signed-off-by Jan Kiszka <[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 22 lines
---
gdbstub.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)gdbstub.c +0
-2@@ -2274,8 +2274,6 @@ static void gdb_accept(void)setsockopt (fd,IPPROTO_TCP ,TCP_NODELAY , (char *)&val,sizeof (val)); s =qemu_mallocz (sizeof (GDBState)); - -memset (s,0 ,sizeof (GDBState)); s->c_cpu = first_cpu; s->g_cpu = first_cpu; s->fd = fd;