s3/libsmb: clang: Fix 'Value stored to 'p' is never read'
authorNoel Power <noel.power@suse.com>
Tue, 13 Aug 2019 14:52:46 +0000 (15:52 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 17:28:27 +0000 (17:28 +0000)
Fixes:

source3/libsmb/clirap.c:145:3: warning: Value stored to 'p' is never read <--[clang]
                p = rdata;
                ^   ~~~~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libsmb/clirap.c

index c0b9dcdff3957f10d1223de8f0bd27d3d9bc3d60..18348223b17ff7a6461fad79229a3827e7775994 100644 (file)
@@ -144,7 +144,6 @@ bool cli_NetWkstaUserLogon(struct cli_state *cli,char *user, char *workstation)
                     &rdata, &rdrcnt                 /* return data, return size */
                    )) {
                cli->rap_error = rparam? SVAL(rparam,0) : -1;
-               p = rdata;
 
                if (cli->rap_error == 0) {
                        DEBUG(4,("NetWkstaUserLogon success\n"));