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>
This commit is contained in:
NeilBrown
2009-06-16 16:54:21 +10:00
rodzic a6b3deafe0
commit 070ec55d07
12 zmienionych plików z 79 dodań i 103 usunięć

Wyświetl plik

@@ -17,6 +17,4 @@ struct raid0_private_data
typedef struct raid0_private_data raid0_conf_t;
#define mddev_to_conf(mddev) ((raid0_conf_t *) mddev->private)
#endif