forked from Minki/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>
This commit is contained in:
parent
c32a512fdf
commit
18cc980ac8
@ -741,7 +741,6 @@ static int userspace_get_resync_work(struct dm_dirty_log *log, region_t *region)
|
|||||||
static void userspace_set_region_sync(struct dm_dirty_log *log,
|
static void userspace_set_region_sync(struct dm_dirty_log *log,
|
||||||
region_t region, int in_sync)
|
region_t region, int in_sync)
|
||||||
{
|
{
|
||||||
int r;
|
|
||||||
struct log_c *lc = log->context;
|
struct log_c *lc = log->context;
|
||||||
struct {
|
struct {
|
||||||
region_t r;
|
region_t r;
|
||||||
@ -751,12 +750,12 @@ static void userspace_set_region_sync(struct dm_dirty_log *log,
|
|||||||
pkg.r = region;
|
pkg.r = region;
|
||||||
pkg.i = (int64_t)in_sync;
|
pkg.i = (int64_t)in_sync;
|
||||||
|
|
||||||
r = userspace_do_request(lc, lc->uuid, DM_ULOG_SET_REGION_SYNC,
|
(void) userspace_do_request(lc, lc->uuid, DM_ULOG_SET_REGION_SYNC,
|
||||||
(char *)&pkg, sizeof(pkg), NULL, NULL);
|
(char *)&pkg, sizeof(pkg), NULL, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It would be nice to be able to report failures.
|
* It would be nice to be able to report failures.
|
||||||
* However, it is easy emough to detect and resolve.
|
* However, it is easy enough to detect and resolve.
|
||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user