diff options
-rw-r--r-- | lib/tran_pipe.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/tran_pipe.c b/lib/tran_pipe.c index 5b47142..34dd075 100644 --- a/lib/tran_pipe.c +++ b/lib/tran_pipe.c @@ -243,7 +243,6 @@ static int tran_pipe_init(vfu_ctx_t *vfu_ctx) { tran_pipe_t *tp = NULL; - int ret = 0; assert(vfu_ctx != NULL); @@ -256,11 +255,6 @@ tran_pipe_init(vfu_ctx_t *vfu_ctx) tp->in_fd = -1; tp->out_fd = -1; - if (ret != 0) { - free(tp); - return ERROR_INT(ret); - } - vfu_ctx->tran_data = tp; return 0; } |