From 88c039b0594ee116aba5370e631622ce313c5ed4 Mon Sep 17 00:00:00 2001 From: Daniel Roethlisberger Date: Fri, 25 Mar 2016 16:41:48 +0100 Subject: [PATCH] Don't test NONNULL arguments for NULL --- pxythrmgr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pxythrmgr.c b/pxythrmgr.c index 83a0b24..c6b49c1 100644 --- a/pxythrmgr.c +++ b/pxythrmgr.c @@ -119,9 +119,6 @@ pxy_thrmgr_run(pxy_thrmgr_ctx_t *ctx) { int idx = -1, dns = 0; - if (!ctx) - return -1; - dns = opts_has_dns_spec(ctx->opts); pthread_mutex_init(&ctx->mutex, NULL); @@ -210,8 +207,6 @@ leave: void pxy_thrmgr_free(pxy_thrmgr_ctx_t *ctx) { - if (!ctx) - return; pthread_mutex_destroy(&ctx->mutex); if (ctx->thr) { for (int idx = 0; idx < ctx->num_thr; idx++) {