diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-02-07 22:16:53 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 20:23:07 +0100 |
commit | 8d1058fb2ac29644d8a427eb3d3eeff2fd88f0a7 (patch) | |
tree | 7443ec12f23f1e0aeac6af04a45761b1fc42962a /drivers/md/dm-kcopyd.c | |
parent | dm: avoid 'do {} while(0)' loop in single statement macros (diff) | |
download | linux-8d1058fb2ac29644d8a427eb3d3eeff2fd88f0a7.tar.xz linux-8d1058fb2ac29644d8a427eb3d3eeff2fd88f0a7.zip |
dm: fix use of sizeof() macro
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-kcopyd.c')
-rw-r--r-- | drivers/md/dm-kcopyd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index b8f8e34c1c09..a158c6e5fbd7 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c @@ -826,7 +826,7 @@ void dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from, job->pages = NULL; job->op = REQ_OP_READ; } else { - memset(&job->source, 0, sizeof job->source); + memset(&job->source, 0, sizeof(job->source)); job->source.count = job->dests[0].count; job->pages = &zero_page_list; |