Remove unused assignments, noticed by Clang analyzer.
MFC after: 1 week
This commit is contained in:
parent
f325335caf
commit
d5cc4a4a61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274248
@ -896,7 +896,7 @@ void
|
|||||||
isns_register(struct isns *isns, struct isns *oldisns)
|
isns_register(struct isns *isns, struct isns *oldisns)
|
||||||
{
|
{
|
||||||
struct conf *conf = isns->i_conf;
|
struct conf *conf = isns->i_conf;
|
||||||
int s, res;
|
int s;
|
||||||
char hostname[256];
|
char hostname[256];
|
||||||
|
|
||||||
if (TAILQ_EMPTY(&conf->conf_targets) ||
|
if (TAILQ_EMPTY(&conf->conf_targets) ||
|
||||||
@ -912,8 +912,8 @@ isns_register(struct isns *isns, struct isns *oldisns)
|
|||||||
|
|
||||||
if (oldisns == NULL || TAILQ_EMPTY(&oldisns->i_conf->conf_targets))
|
if (oldisns == NULL || TAILQ_EMPTY(&oldisns->i_conf->conf_targets))
|
||||||
oldisns = isns;
|
oldisns = isns;
|
||||||
res = isns_do_deregister(oldisns, s, hostname);
|
isns_do_deregister(oldisns, s, hostname);
|
||||||
res = isns_do_register(isns, s, hostname);
|
isns_do_register(isns, s, hostname);
|
||||||
close(s);
|
close(s);
|
||||||
set_timeout(0, false);
|
set_timeout(0, false);
|
||||||
}
|
}
|
||||||
@ -938,8 +938,8 @@ isns_check(struct isns *isns)
|
|||||||
|
|
||||||
res = isns_do_check(isns, s, hostname);
|
res = isns_do_check(isns, s, hostname);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
res = isns_do_deregister(isns, s, hostname);
|
isns_do_deregister(isns, s, hostname);
|
||||||
res = isns_do_register(isns, s, hostname);
|
isns_do_register(isns, s, hostname);
|
||||||
}
|
}
|
||||||
close(s);
|
close(s);
|
||||||
set_timeout(0, false);
|
set_timeout(0, false);
|
||||||
@ -949,7 +949,7 @@ void
|
|||||||
isns_deregister(struct isns *isns)
|
isns_deregister(struct isns *isns)
|
||||||
{
|
{
|
||||||
struct conf *conf = isns->i_conf;
|
struct conf *conf = isns->i_conf;
|
||||||
int s, res;
|
int s;
|
||||||
char hostname[256];
|
char hostname[256];
|
||||||
|
|
||||||
if (TAILQ_EMPTY(&conf->conf_targets) ||
|
if (TAILQ_EMPTY(&conf->conf_targets) ||
|
||||||
@ -961,7 +961,7 @@ isns_deregister(struct isns *isns)
|
|||||||
return;
|
return;
|
||||||
gethostname(hostname, sizeof(hostname));
|
gethostname(hostname, sizeof(hostname));
|
||||||
|
|
||||||
res = isns_do_deregister(isns, s, hostname);
|
isns_do_deregister(isns, s, hostname);
|
||||||
close(s);
|
close(s);
|
||||||
set_timeout(0, false);
|
set_timeout(0, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user