changeset 1086:ab03d4068049

tag: remove dead code The passed in val cannot ever be NULL since the caller uses sexpr_for_each to iterate over the list and it never produces NULL pointers. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 30 Aug 2017 16:06:19 +0300
parents b7534c98fec5
children 5bf62a7209ab
files tag.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tag.c	Wed Aug 30 16:04:20 2017 +0300
+++ b/tag.c	Wed Aug 30 16:06:19 2017 +0300
@@ -148,9 +148,6 @@
 	struct val *idx, *name;
 	int ret;
 
-	if (!cur)
-		return 0; /* empty list is ok */
-
 	if (cur->type != VT_CONS) {
 		val_putref(cur);
 		return -EINVAL;