mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-06 17:18:29 +03:00
container_of: drop needless const converion
This commit is contained in:
parent
c4202bf458
commit
950a9bbde9
@ -18,7 +18,7 @@
|
|||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
|
||||||
#define container_of(v, t, head) \
|
#define container_of(v, t, head) \
|
||||||
((t *)((const char *)(v) - offsetof(t, head)))
|
((t *)((char *)(v) - offsetof(t, head)))
|
||||||
|
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -2471,7 +2471,7 @@ struct dm_list *dm_list_next(const struct dm_list *head, const struct dm_list *e
|
|||||||
* contained in a structure of type t, return the containing structure.
|
* contained in a structure of type t, return the containing structure.
|
||||||
*/
|
*/
|
||||||
#define dm_list_struct_base(v, t, head) \
|
#define dm_list_struct_base(v, t, head) \
|
||||||
((t *)((const char *)(v) - offsetof(t, head)))
|
((t *)((char *)(v) - offsetof(t, head)))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Given the address v of an instance of 'struct dm_list list' contained in
|
* Given the address v of an instance of 'struct dm_list list' contained in
|
||||||
|
Loading…
Reference in New Issue
Block a user