From 8b913eb752be422a362329d02dfb5c76754ad151 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sun, 19 Aug 2018 08:08:23 +0300 Subject: {dht-rebalance|glusterd-geo-rep|glusterd-utils|nfs|bd}.c: no dict_del before dict_set There is no need to remove an item before re-setting it. Compile-tested only! Change-Id: I2869aec9ebf474859127b8b38d284246e6097e84 updates: bz#1193929 Signed-off-by: Yaniv Kaul --- xlators/nfs/server/src/nfs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'xlators/nfs/server') diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 6a4415d5b8b..7f741695fb5 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -1082,7 +1082,6 @@ nfs_init_state (xlator_t *this) if (nfs->allow_insecure) { /* blindly set both the options */ - dict_del (this->options, "rpc-auth-allow-insecure"); ret = dict_set_str (this->options, "rpc-auth-allow-insecure", "on"); if (ret == -1) { @@ -1090,7 +1089,6 @@ nfs_init_state (xlator_t *this) NFS_MSG_DICT_SET_FAILED, "dict_set_str error"); goto free_foppool; } - dict_del (this->options, "rpc-auth.ports.insecure"); ret = dict_set_str (this->options, "rpc-auth.ports.insecure", "on"); if (ret == -1) { -- cgit