Skip to content

Commit

Permalink
Revert "CMDQ: Set the last entry in the linked list's next ptr to NULL."
Browse files Browse the repository at this point in the history
This reverts commit f8ee85f.

This commit isn't needed, as calloc() zeros the memory for you.
  • Loading branch information
AndrewP committed Apr 14, 2015
1 parent f8ee85f commit 61ea96c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/libswd_cmdq.c
Expand Up @@ -113,7 +113,6 @@ int libswd_cmdq_append(libswd_cmd_t *cmdq, libswd_cmd_t *cmd){
cmdq->next=cmd;
cmd->prev=cmdq;
}
cmd->next = NULL;
return 1;
}

Expand Down
1 change: 0 additions & 1 deletion src/libswd_core.c
Expand Up @@ -61,7 +61,6 @@ libswd_ctx_t *libswd_init(void){
libswd_deinit_ctx(libswdctx);
return NULL;
}
libswdctx->cmdq->next = NULL;
libswdctx->config.initialized=LIBSWD_TRUE;
libswdctx->config.trnlen=LIBSWD_TURNROUND_DEFAULT_VAL;
libswdctx->config.maxcmdqlen=LIBSWD_CMDQLEN_DEFAULT;
Expand Down

0 comments on commit 61ea96c

Please sign in to comment.