ss: Get rid of useless goto in handle_follow_request()

Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2016-12-02 11:39:57 +01:00 committed by Stephen Hemminger
parent b3535dd61d
commit 6b224dad23
1 changed files with 2 additions and 4 deletions

View File

@ -3675,7 +3675,7 @@ static int generic_show_sock(const struct sockaddr_nl *addr,
static int handle_follow_request(struct filter *f)
{
int ret = -1;
int ret = 0;
int groups = 0;
struct rtnl_handle rth;
@ -3698,10 +3698,8 @@ static int handle_follow_request(struct filter *f)
rth.local.nl_pid = 0;
if (rtnl_dump_filter(&rth, generic_show_sock, f))
goto Exit;
ret = -1;
ret = 0;
Exit:
rtnl_close(&rth);
return ret;
}