Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2019-07-18 05:58:54 +0300
committermichael-grunder <michael.grunder@gmail.com>2019-07-18 05:58:54 +0300
commit36a35ed8cfc7a1b8db3d468dd9f58e736a1999d5 (patch)
tree8cdf89316b3eb2136191be62028219498f300925 /redis.c
parentdfbc9c8cb76d63aaca5f58f21790abc0aae5787a (diff)
Remove redundant cast
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/redis.c b/redis.c
index 6700cdfe..52206909 100644
--- a/redis.c
+++ b/redis.c
@@ -560,8 +560,7 @@ free_reply_callbacks(RedisSock *redis_sock)
/* Passthru for destroying cluster cache */
static void cluster_cache_dtor(zend_resource *rsrc) {
if (rsrc->ptr) {
- redisCachedCluster *rcc = (redisCachedCluster*)rsrc->ptr;
- cluster_cache_free(rcc);
+ cluster_cache_free(rsrc->ptr);
}
}