diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-10-21 03:55:04 +0300 |
---|---|---|
committer | Yaniv Kaul <ykaul@redhat.com> | 2018-11-11 16:06:29 +0000 |
commit | cac2dba48bf8029b2b0421850fcc4598e33569f6 (patch) | |
tree | 0ce59ef4a72c4b3f0dea9bff5bec0ccfbd247796 /libglusterfs/src/syncop.c | |
parent | db28fc7a35b784a4ca6a361961081f93e968cfcb (diff) |
libglusterfs multiple files: remove dead initilization
Per newer GCC releases and clang-scan, some trivial
dead initialization (values that were set but were never
read) were removed.
Compile-tested only!
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34
Diffstat (limited to 'libglusterfs/src/syncop.c')
-rw-r--r-- | libglusterfs/src/syncop.c | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 18ce6cf73af..edf978d797d 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -3397,42 +3397,4 @@ syncop_namelink_cbk(call_frame_t *frame, void *cookie, xlator_t *this, __wake(args); return 0; -} - -int -syncop_icreate(xlator_t *subvol, loc_t *loc, mode_t mode, dict_t *xdata) -{ - struct syncargs args = { - 0, - }; - - SYNCOP(subvol, (&args), syncop_icreate_cbk, subvol->fops->icreate, loc, - mode, xdata); - - if (xdata) - xdata = args.xdata; - else if (args.xdata) - dict_unref(args.xdata); - - errno = args.op_errno; - return args.op_ret; -} - -int -syncop_namelink(xlator_t *subvol, loc_t *loc, dict_t *xdata) -{ - struct syncargs args = { - 0, - }; - - SYNCOP(subvol, (&args), syncop_namelink_cbk, subvol->fops->namelink, loc, - xdata); - - if (xdata) - xdata = args.xdata; - else if (args.xdata) - dict_unref(args.xdata); - - errno = args.op_errno; - return args.op_ret; -} +}
\ No newline at end of file |