]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
md-cluster: don't cast void pointers when assigning them.
authorNeilBrown <neilb@suse.com>
Mon, 19 Oct 2015 04:42:18 +0000 (15:42 +1100)
committerNeilBrown <neilb@suse.com>
Sat, 24 Oct 2015 06:16:18 +0000 (17:16 +1100)
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>
drivers/md/md-cluster.c

index 02a0fb2e8441a5624948657237d314adcd447355..818bcccb2962d8e982d4f4dfff1e2db0431db360 100644 (file)
@@ -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)