From 8e78dc64d2fedccc77966b0636f7530f452dc7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Goddard=20Rosa?= Date: Thu, 10 Jun 2010 22:36:08 -0300 Subject: adb: remove unneeded assignment of id to zero MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... as memory was already obtained zero'ed by calloc(). Change-Id: Ic73bad09b54cb778fd40bdf86bb40888ea504c5f Signed-off-by: André Goddard Rosa --- adb/sockets.c | 1 - 1 file changed, 1 deletion(-) (limited to 'adb') diff --git a/adb/sockets.c b/adb/sockets.c index 58dcfbb..6d1c89b 100644 --- a/adb/sockets.c +++ b/adb/sockets.c @@ -762,7 +762,6 @@ asocket *create_smart_socket(void (*action_cb)(asocket *s, const char *act)) D("Creating smart socket \n"); asocket *s = calloc(1, sizeof(asocket)); if (s == NULL) fatal("cannot allocate socket"); - s->id = 0; s->enqueue = smart_socket_enqueue; s->ready = smart_socket_ready; s->close = smart_socket_close; -- cgit v1.1