diff options
author | NeilBrown <neilb@suse.de> | 2009-06-16 16:54:21 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-06-16 16:54:21 +1000 |
commit | 070ec55d07157a3041f92654135c3c6e2eaaf901 (patch) | |
tree | 10f24d859e669ba4a671204ce4176a2b43fdaae5 /drivers/md/linear.h | |
parent | a6b3deafe0c50e3e873e8ed5cc8abfcb25c05eff (diff) | |
download | linux-stable-070ec55d07157a3041f92654135c3c6e2eaaf901.tar.gz linux-stable-070ec55d07157a3041f92654135c3c6e2eaaf901.tar.bz2 linux-stable-070ec55d07157a3041f92654135c3c6e2eaaf901.zip |
md: remove mddev_to_conf "helper" macro
Having a macro just to cast a void* isn't really helpful.
I would must rather see that we are simply de-referencing ->private,
than have to know what the macro does.
So open code the macro everywhere and remove the pointless cast.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/linear.h')
-rw-r--r-- | drivers/md/linear.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/linear.h b/drivers/md/linear.h index bf8179587f95..76078f1cded0 100644 --- a/drivers/md/linear.h +++ b/drivers/md/linear.h @@ -24,6 +24,4 @@ struct linear_private_data typedef struct linear_private_data linear_conf_t; -#define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private) - #endif |