Commit a3282aed authored by Federico G. Schwindt's avatar Federico G. Schwindt

Remove superfluous returns

parent 81c0e4a6
......@@ -567,7 +567,6 @@ ccf_config_load(struct cli *cli, const char * const *av, void *priv)
ASSERT_CLI();
if (VCL_Load(cli, av[2], av[3], av[4]))
VCLI_SetResult(cli, CLIS_PARAM);
return;
}
static void __match_proto__(cli_func_t)
......@@ -640,7 +639,6 @@ ccf_config_use(struct cli *cli, const char * const *av, void *priv)
Lck_Unlock(&vcl_mtx);
}
VSB_delete(vsb);
return;
}
static void __match_proto__(cli_func_t)
......
......@@ -78,7 +78,6 @@ hcl_init(int ac, char * const *av)
}
hcl_nhash = u;
fprintf(stderr, "Classic hash: %u buckets\n", hcl_nhash);
return;
}
/*--------------------------------------------------------------------
......
......@@ -59,7 +59,8 @@ v1d_bytes(struct req *req, enum vdp_action act, void **priv,
}
static void
v1d_error(struct req *req, const char *msg) {
v1d_error(struct req *req, const char *msg)
{
static const char r_500[] =
"HTTP/1.1 500 Internal Server Error\r\n"
"Server: Varnish\r\n"
......@@ -72,7 +73,6 @@ v1d_error(struct req *req, const char *msg) {
(void)write(req->sp->fd, r_500, sizeof r_500 - 1);
req->doclose = SC_TX_EOF;
return;
}
/*--------------------------------------------------------------------
......
......@@ -106,7 +106,6 @@ V1L_Reserve(struct worker *wrk, struct ws *ws, int *fd, struct vsl_log *vsl,
v1l->t0 = t0;
v1l->vsl = vsl;
wrk->v1l = v1l;
return;
}
unsigned
......
......@@ -381,5 +381,4 @@ VPX_Proto_Sess(struct worker *wrk, void *priv)
req->sp->sess_step = S_STP_H1NEWREQ;
wrk->task.func = SES_Proto_Req;
wrk->task.priv = req;
return;
}
......@@ -131,7 +131,6 @@ vws_port_ev(struct vws *vws, struct waiter *w, port_event_t *ev, double now) {
WAITER_REMCLOSE : WAITER_ACTION,
now);
}
return;
}
static void *
......
......@@ -397,7 +397,6 @@ vxp_expr_not(struct vxp *vxp, struct vex **pvex)
}
vxp_expr_group(vxp, pvex);
return;
}
/*
......
......@@ -49,7 +49,6 @@ parse_call(struct vcc *tl)
Fb(tl, 1, "if (VGC_function_%.*s(ctx))\n", PF(tl->t));
Fb(tl, 1, "\treturn (1);\n");
vcc_NextToken(tl);
return;
}
/*--------------------------------------------------------------------*/
......
......@@ -117,7 +117,6 @@ vcc_IsField(struct vcc *tl, struct token **t, struct fld_spec *fs)
vcc_ErrToken(tl, t_field);
VSB_printf(tl->sb, " at\n");
vcc_ErrWhere(tl, t_field);
return;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment