diff options
author | Nandaja Varma <nandaja.varma@gmail.com> | 2015-02-12 11:20:49 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-03-30 05:42:38 -0700 |
commit | 8e2a0f35e0ac66e75f2dcbe6a9ca8815d4233edf (patch) | |
tree | 29f660dc520ee494988ecd6aa04c715ffe911ebe | |
parent | 4481b03ae2e8ebbd091b0436b96e97707b4ec41f (diff) |
qemu-block: Fixing coverity issue(Unused value)
Coverity ID: 1124889 1124889 1124889 1124889 1124889 1124889 1124889
1124889 1124889 1124889 1124889
Change-Id: I82d57022c4a06fb70573b4e9436f934185f8fb84
BUG: 789278
Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com>
Reviewed-on: http://review.gluster.org/9642
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
-rw-r--r-- | xlators/features/qemu-block/src/qemu-block.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c index 768866f6429..6f3d28041b9 100644 --- a/xlators/features/qemu-block/src/qemu-block.c +++ b/xlators/features/qemu-block/src/qemu-block.c @@ -415,24 +415,23 @@ int qb_setxattr_common (call_frame_t *frame, xlator_t *this, call_stub_t *stub, dict_t *xattr, inode_t *inode) { - data_t *data = NULL; - if ((data = dict_get (xattr, "trusted.glusterfs.block-format"))) { + if (dict_get (xattr, "trusted.glusterfs.block-format")) { qb_setxattr_format (frame, this, stub, xattr, inode); return 0; } - if ((data = dict_get (xattr, "trusted.glusterfs.block-snapshot-create"))) { + if (dict_get (xattr, "trusted.glusterfs.block-snapshot-create")) { qb_setxattr_snapshot_create (frame, this, stub, xattr, inode); return 0; } - if ((data = dict_get (xattr, "trusted.glusterfs.block-snapshot-delete"))) { + if (dict_get (xattr, "trusted.glusterfs.block-snapshot-delete")) { qb_setxattr_snapshot_delete (frame, this, stub, xattr, inode); return 0; } - if ((data = dict_get (xattr, "trusted.glusterfs.block-snapshot-goto"))) { + if (dict_get (xattr, "trusted.glusterfs.block-snapshot-goto")) { qb_setxattr_snapshot_goto (frame, this, stub, xattr, inode); return 0; } |