From 0c46611b209eaf146e5594a4d94b48b1f7a593f9 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 29 Jun 2007 08:21:38 +0000 Subject: [PATCH] Drop two unused macros. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4519 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/access.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/access.c b/lib/access.c index c3f81da1..a00347f5 100644 --- a/lib/access.c +++ b/lib/access.c @@ -30,11 +30,6 @@ #define GET_TYPE_REGEX "\\([[:alpha:]]\\{1,\\}\\)[[:digit:]]\\{0,\\}\\(_\\([[:alpha:]]\\{1,\\}\\)\\)\\{0,1\\}" -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (const char *)__mptr - offsetof(type,member) );}) - static int sensors_do_this_chip_sets(sensors_chip_name name); /* Compare two chips name descriptions, to see whether they could match.