diff options
author | Pierre Chapuis <catwell-github@catwell.info> | 2016-06-05 16:09:55 +0200 |
---|---|---|
committer | Pierre Chapuis <catwell-github@catwell.info> | 2016-06-05 16:50:17 +0200 |
commit | b670a1628263cd2655e70ee5c9c947f49fc94647 (patch) | |
tree | 140dd2f711bae7409b1acf6030ef81883b3852b0 | |
parent | 3e9c20f63b9649bf2a8ddce8f4743c7fb5d435b4 (diff) | |
download | redis-b670a1628263cd2655e70ee5c9c947f49fc94647.tar.gz |
remove unused variable
-rw-r--r-- | src/t_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_list.c b/src/t_list.c index 3e2f0020a..3777395ee 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) { *----------------------------------------------------------------------------*/ void pushGenericCommand(client *c, int where) { - int j, waiting = 0, pushed = 0; + int j, pushed = 0; robj *lobj = lookupKeyWrite(c->db,c->argv[1]); if (lobj && lobj->type != OBJ_LIST) { @@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) { listTypePush(lobj,c->argv[j],where); pushed++; } - addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0)); + addReplyLongLong(c, (lobj ? listTypeLength(lobj) : 0)); if (pushed) { char *event = (where == LIST_HEAD) ? "lpush" : "rpush"; |