Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm log userspace base: fix compile warning

This fixes up a compile warning [-Wunused-but-set-variable] - given the
comment in userspace_set_region_sync() the non-reporting of errors is
intentional so the return value can be dropped to make gcc happy.

Also, fix typo in comment.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by

Nicholas Mc Guire and committed by
Mike Snitzer
18cc980a c32a512f

+3 -4
+3 -4
drivers/md/dm-log-userspace-base.c
··· 741 741 static void userspace_set_region_sync(struct dm_dirty_log *log, 742 742 region_t region, int in_sync) 743 743 { 744 - int r; 745 744 struct log_c *lc = log->context; 746 745 struct { 747 746 region_t r; ··· 750 751 pkg.r = region; 751 752 pkg.i = (int64_t)in_sync; 752 753 753 - r = userspace_do_request(lc, lc->uuid, DM_ULOG_SET_REGION_SYNC, 754 - (char *)&pkg, sizeof(pkg), NULL, NULL); 754 + (void) userspace_do_request(lc, lc->uuid, DM_ULOG_SET_REGION_SYNC, 755 + (char *)&pkg, sizeof(pkg), NULL, NULL); 755 756 756 757 /* 757 758 * It would be nice to be able to report failures. 758 - * However, it is easy emough to detect and resolve. 759 + * However, it is easy enough to detect and resolve. 759 760 */ 760 761 return; 761 762 }