[master] 8edfddaaa Remove superfluous argument
Nils Goroll
nils.goroll at uplex.de
Mon Jan 11 16:45:07 UTC 2021
commit 8edfddaaaaf3867f20b3e365ceb5c0c4fd3362fb
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Jan 11 17:38:37 2021 +0100
Remove superfluous argument
polishes 06cf60a020a81e49d001ee42e4d85f16580f3fe0
I should have taken more time for that merge.
diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index 059392386..3beac7f3b 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -116,7 +116,7 @@ vrt_priv_dyncmp(const struct vrt_priv *vp1, const struct vrt_priv *vp2)
VRBT_GENERATE_STATIC(vrt_privs, vrt_priv, entry, vrt_priv_dyncmp)
static struct vmod_priv *
-vrt_priv_dynamic_get(struct ws *ws, struct vrt_privs *privs, uintptr_t vmod_id)
+vrt_priv_dynamic_get(struct vrt_privs *privs, uintptr_t vmod_id)
{
struct vrt_priv *vp;
@@ -143,7 +143,7 @@ vrt_priv_dynamic(struct ws *ws, struct vrt_privs *privs, uintptr_t vmod_id)
* TODO: for insert == 1, we can avoid the VRBT_FIND:
* call only VRT_INSERT and reset the ws if the element existed
*/
- r = vrt_priv_dynamic_get(ws, privs, vmod_id);
+ r = vrt_priv_dynamic_get(privs, vmod_id);
if (r)
return (r);
@@ -185,7 +185,6 @@ VRT_priv_task_get(VRT_CTX, const void *vmod_id)
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
return (vrt_priv_dynamic_get(
- ctx->ws,
vrt_priv_task_context(ctx),
(uintptr_t)vmod_id));
}
More information about the varnish-commit
mailing list