From: Noel Power Date: Tue, 13 Aug 2019 14:52:46 +0000 (+0100) Subject: s3/libsmb: clang: Fix 'Value stored to 'p' is never read' X-Git-Tag: talloc-2.3.1~268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61621009980a4c4a8b64bde8e03370152df0cdce;p=thirdparty%2Fsamba.git s3/libsmb: clang: Fix 'Value stored to 'p' is never read' Fixes: source3/libsmb/clirap.c:145:3: warning: Value stored to 'p' is never read <--[clang] p = rdata; ^ ~~~~~ Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index c0b9dcdff39..18348223b17 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -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"));