summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-07-23 19:37:39 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-07-23 19:37:39 +0000
commit3eba8f52285191e758420b1c43bc3351065ac365 (patch)
tree56bc94cb78ddf47f9ce0013082fd33080b241535 /usr.sbin
parentca81712dbfbe6c293caaa74e926ac94f4ca13721 (diff)
Silence some lint warnings about an unreachable return by consolidating
actual returns (which were returning the same value anyway). ok pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypldap/yp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c
index 75539f4a9da..065d6972620 100644
--- a/usr.sbin/ypldap/yp.c
+++ b/usr.sbin/ypldap/yp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp.c,v 1.2 2009/06/02 07:40:50 bernd Exp $ */
+/* $OpenBSD: yp.c,v 1.3 2009/07/23 19:37:38 blambert Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
*
@@ -418,19 +418,17 @@ ypproc_first_2_svc(ypreq_nokey *arg, struct svc_req *req)
return (NULL);
yp_make_keyval(&res, env->sc_user_lines, env->sc_user_lines);
- return (&res);
} else if (strcmp(arg->map, "group.byname") == 0) {
if (env->sc_group_lines == NULL)
return (NULL);
yp_make_keyval(&res, env->sc_group_lines, env->sc_group_lines);
- return (&res);
} else {
log_debug("unknown map %s", arg->map);
res.stat = YP_NOMAP;
- return (&res);
}
- return (NULL);
+
+ return (&res);
}
ypresp_key_val *