Remove unused variable.

Found by:	Coverity
CID:		1245739
This commit is contained in:
Alexander V. Chernikov 2014-11-04 10:25:52 +00:00
parent c8dce4fe5a
commit 038263c36a

View file

@ -1824,7 +1824,6 @@ create_table(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
char *tname, *aname;
struct tid_info ti;
struct namedobj_instance *ni;
struct table_config *tc;
if (sd->valsize != sizeof(*oh) + sizeof(ipfw_xtable_info))
return (EINVAL);
@ -1853,7 +1852,7 @@ create_table(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
ni = CHAIN_TO_NI(ch);
IPFW_UH_RLOCK(ch);
if ((tc = find_table(ni, &ti)) != NULL) {
if (find_table(ni, &ti) != NULL) {
IPFW_UH_RUNLOCK(ch);
return (EEXIST);
}