summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-02-19 15:42:28 +0530
committerAnand Avati <avati@redhat.com>2013-02-19 18:57:14 -0800
commit66ec7fb345441ba6283e68f95410ce3ee9d5554e (patch)
tree3477e5617cf149f8eef267062efc87ea48be6549 /xlators/mgmt/glusterd/src
parent12d865dd59e70a5dd0701190f116efe8811c088c (diff)
code cleanup: remove unused parameter 'dict'
Change-Id: Id5c23a0cedf695eb9c25bc793cea3cf0a13f61c4 BUG: 764890 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/4544 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index d154c4fd242..9704686ac01 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -448,7 +448,7 @@ struct opthandler_data {
};
static int
-process_option (dict_t *dict, char *key, data_t *value, void *param)
+process_option (char *key, data_t *value, void *param)
{
struct opthandler_data *odt = param;
struct volopt_map_entry vme = {0,};
@@ -497,7 +497,7 @@ volgen_graph_set_options_generic (volgen_graph_t *graph, dict_t *dict,
data = dict_get (dict, vme->key);
if (data)
- process_option (dict, vme->key, data, &odt);
+ process_option (vme->key, data, &odt);
if (odt.rv)
return odt.rv;
@@ -511,8 +511,7 @@ volgen_graph_set_options_generic (volgen_graph_t *graph, dict_t *dict,
* in this context
*/
odt.data_t_fake = _gf_true;
- process_option (NULL, vme->key, (data_t *)vme->value,
- &odt);
+ process_option (vme->key, (data_t *)vme->value, &odt);
if (odt.rv)
return odt.rv;
}