diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2010-06-10 22:36:08 -0300 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-06-14 09:56:14 -0700 |
commit | 8e78dc64d2fedccc77966b0636f7530f452dc7d5 (patch) | |
tree | 4ff87317236b04354d12633c046fa74cf351d39c /adb | |
parent | c419e2a210ad7e37a1f749f2ab4de7c7f95b90d7 (diff) | |
download | system_core-8e78dc64d2fedccc77966b0636f7530f452dc7d5.zip system_core-8e78dc64d2fedccc77966b0636f7530f452dc7d5.tar.gz system_core-8e78dc64d2fedccc77966b0636f7530f452dc7d5.tar.bz2 |
adb: remove unneeded assignment of id to zero
... as memory was already obtained zero'ed by calloc().
Change-Id: Ic73bad09b54cb778fd40bdf86bb40888ea504c5f
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Diffstat (limited to 'adb')
-rw-r--r-- | adb/sockets.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |