Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e2a7cd9 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.com>
parent 82381523
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)