Coverity CID 97: Remove dead code.
This commit is contained in:
parent
00f39ded1b
commit
99f1624bd3
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpc_parse.c,v 1.14 2006/03/20 17:03:08 elad Exp $ */
|
||||
/* $NetBSD: rpc_parse.c,v 1.15 2006/04/04 21:27:42 christos Exp $ */
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
* unrestricted use provided that this legend is included on all tape
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)rpc_parse.c 1.8 89/02/22 (C) 1987 SMI";
|
||||
#else
|
||||
__RCSID("$NetBSD: rpc_parse.c,v 1.14 2006/03/20 17:03:08 elad Exp $");
|
||||
__RCSID("$NetBSD: rpc_parse.c,v 1.15 2006/04/04 21:27:42 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -302,7 +302,6 @@ def_union(defp)
|
||||
declaration dec;
|
||||
case_list *cases;
|
||||
case_list **tailp;
|
||||
int flag;
|
||||
|
||||
defp->def_kind = DEF_UNION;
|
||||
scan(TOK_IDENT, &tok);
|
||||
@ -321,7 +320,6 @@ def_union(defp)
|
||||
cases->case_name = tok.str;
|
||||
scan(TOK_COLON, &tok);
|
||||
/* now peek at next token */
|
||||
flag = 0;
|
||||
if (peekscan(TOK_CASE, &tok)) {
|
||||
|
||||
do {
|
||||
@ -335,14 +333,7 @@ def_union(defp)
|
||||
scan(TOK_COLON, &tok);
|
||||
|
||||
} while (peekscan(TOK_CASE, &tok));
|
||||
} else
|
||||
if (flag) {
|
||||
|
||||
*tailp = cases;
|
||||
tailp = &cases->next;
|
||||
cases = ALLOC(case_list);
|
||||
};
|
||||
|
||||
}
|
||||
get_declaration(&dec, DEF_UNION);
|
||||
cases->case_decl = dec;
|
||||
cases->contflag = 0; /* no continued case statement */
|
||||
|
Loading…
Reference in New Issue
Block a user