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>
This commit is contained in:
parent
c419e2a210
commit
8e78dc64d2
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue