]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/lib: clang: 'Value stored to 'rta' is never read'
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 11:45:01 +0000 (11:45 +0000)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:25 +0000 (22:52 +0000)
Fixes:
source3/lib/addrchange.c:217:2: warning: Value stored to 'rta' is never read <--[clang]
        rta = IFA_RTA(ifa);
        ^     ~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/lib/addrchange.c

index 719b8702789025bdf2b86c03fd70a60458e690cf..9a64e8d3a149bc60571d4a9dc89a89d73a8003a1 100644 (file)
@@ -214,7 +214,6 @@ static void addrchange_done(struct tevent_req *subreq)
 
        state->addr.ss_family = ifa->ifa_family;
 
-       rta = IFA_RTA(ifa);
        len = h->nlmsg_len - sizeof(struct nlmsghdr) + sizeof(struct ifaddrmsg);
 
        found = false;