diff options
author | Noel Power <noel.power@suse.com> | 2019-08-09 16:02:18 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-08-28 01:47:40 +0000 |
commit | 0c91634ebe4065bfb66c5cf575659aa1150fc2fb (patch) | |
tree | edbcd8206c3e0c31ed09edea1554ebc990545f63 /source3/libsmb | |
parent | f8b5c47ad51f8ee727122964099b1b3dc36028d9 (diff) | |
download | samba-0c91634ebe4065bfb66c5cf575659aa1150fc2fb.tar.gz |
s3/libsmb: clang: Fix 'Value stored to 'status' is never read'
Fixes:
source3/libsmb/cliquota.c:340:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
/home/samba/samba/source3/libsmb/cliquota.c:357:4: warning: Value stored to 'status' is never read <--[clang]
status = NT_STATUS_OK;
^ ~~~~~~~~~~~~
2 warnings generated.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliquota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cliquota.c b/source3/libsmb/cliquota.c index 17655e095f3..06290afb3ec 100644 --- a/source3/libsmb/cliquota.c +++ b/source3/libsmb/cliquota.c @@ -337,7 +337,7 @@ cli_set_user_quota(struct cli_state *cli, int quota_fnum, SMB_NTQUOTA_LIST *qtl) uint16_t setup[1]; uint8_t params[2]; DATA_BLOB data = data_blob_null; - NTSTATUS status = NT_STATUS_UNSUCCESSFUL; + NTSTATUS status; if (!cli || !qtl) { smb_panic("cli_set_user_quota() called with NULL Pointer!"); |