From 8e2a0f35e0ac66e75f2dcbe6a9ca8815d4233edf Mon Sep 17 00:00:00 2001 From: Nandaja Varma Date: Thu, 12 Feb 2015 11:20:49 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/9642 Tested-by: Gluster Build System Reviewed-by: Humble Devassy Chirammal Reviewed-by: Kaleb KEITHLEY --- xlators/features/qemu-block/src/qemu-block.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xlators/features') 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; } -- cgit