diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-03-22 07:08:24 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-23 00:13:56 -0700 |
commit | 6f6c817314a2a867be996c2ad6d9a1337617ded4 (patch) | |
tree | d65c02621cda7ad3811008d66ee5daac569be5e0 | |
parent | e4957b1ae771fa7a1e56cfd25f55deaa527dff4c (diff) |
do not check loc and fd since they can be passed as NULL only
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index da3124ff784..b34f48c094a 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -157,8 +157,6 @@ gf_add_locker (struct _lock_table *table, const char *volume, GF_VALIDATE_OR_GOTO ("server", table, out); GF_VALIDATE_OR_GOTO ("server", volume, out); - GF_VALIDATE_OR_GOTO ("server", loc, out); - GF_VALIDATE_OR_GOTO ("server", fd, out); new = GF_CALLOC (1, sizeof (struct _locker), gf_server_mt_locker_t); if (new == NULL) { @@ -202,8 +200,6 @@ gf_del_locker (struct _lock_table *table, const char *volume, GF_VALIDATE_OR_GOTO ("server", table, out); GF_VALIDATE_OR_GOTO ("server", volume, out); - GF_VALIDATE_OR_GOTO ("server", loc, out); - GF_VALIDATE_OR_GOTO ("server", fd, out); INIT_LIST_HEAD (&del); |