1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00

container_of: drop needless const converion

This commit is contained in:
Zdenek Kabelac 2020-08-28 18:26:07 +02:00
parent c4202bf458
commit 950a9bbde9
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
//----------------------------------------------------------------
#define container_of(v, t, head) \
((t *)((const char *)(v) - offsetof(t, head)))
((t *)((char *)(v) - offsetof(t, head)))
//----------------------------------------------------------------

View File

@ -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.
*/
#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