summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-target.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2013-05-10 14:37:18 +0100
committerAlasdair G Kergon <agk@redhat.com>2013-05-10 14:37:18 +0100
commit8c5008fac4af85c7a597c4e7f2c328ac90652bc2 (patch)
tree36a644b0f1c4208dd773887dc5061368fe315d11 /drivers/md/dm-cache-target.c
parentaeed1420a39afb9bd4b7acfcda7a573e349bf27a (diff)
downloadblackbird-op-linux-8c5008fac4af85c7a597c4e7f2c328ac90652bc2.tar.gz
blackbird-op-linux-8c5008fac4af85c7a597c4e7f2c328ac90652bc2.zip
dm cache: replace memcpy with struct assignment
Use struct assignment rather than memcpy in dm cache. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r--drivers/md/dm-cache-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index 004d7053a5b1..2f3348c76267 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -1913,7 +1913,7 @@ static int cache_create(struct cache_args *ca, struct cache **result)
ti->discards_supported = true;
ti->discard_zeroes_data_unsupported = true;
- memcpy(&cache->features, &ca->features, sizeof(cache->features));
+ cache->features = ca->features;
ti->per_bio_data_size = get_per_bio_data_size(cache);
cache->callbacks.congested_fn = cache_is_congested;
OpenPOWER on IntegriCloud