diff options
author | NeilBrown | 2015-10-19 15:42:18 +1100 |
---|---|---|
committer | NeilBrown | 2015-10-24 17:16:18 +1100 |
commit | 2e2a7cd96f5a076db4d4a4bd564652d37dd034c2 (patch) | |
tree | f5e5bd491fbce182a05de75d29c5a204ec02f8b2 | |
parent | 823815238f5e2bfd3783602ca9c50da9fe41c778 (diff) |
md-cluster: don't cast void pointers when assigning them.
It is common practice in the kernel to leave out this case.
It isn't needed and adds little if any value.
Signed-off-by: NeilBrown <neilb@suse.com>
-rw-r--r-- | drivers/md/md-cluster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 02a0fb2e8441..818bcccb2962 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -93,7 +93,7 @@ static void sync_ast(void *arg) { struct dlm_lock_resource *res; - res = (struct dlm_lock_resource *) arg; + res = arg; complete(&res->completion); } @@ -349,7 +349,7 @@ static const struct dlm_lockspace_ops md_ls_ops = { */ static void ack_bast(void *arg, int mode) { - struct dlm_lock_resource *res = (struct dlm_lock_resource *)arg; + struct dlm_lock_resource *res = arg; struct md_cluster_info *cinfo = res->mddev->cluster_info; if (mode == DLM_LOCK_EX) |