Changeset 4640
- Timestamp:
- 07/22/07 14:45:43 (1 year ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/lib/access.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4635 r4640 4 4 SVN HEAD 5 5 Library: Fix a memory leak on error 6 Speed up sensors_get_ignored() a bit 6 7 Module i2c-piix4: Add ATI SB700 support (2.6 backport) 7 8 lm-sensors/trunk/lib/access.c
r4551 r4640 197 197 const sensors_chip_feature *featureptr; 198 198 const sensors_chip_feature *alt_featureptr; 199 int i, res; 200 201 /* Default: valid */ 202 res = 1; 199 int i; 200 203 201 if (sensors_chip_name_has_wildcards(name)) 204 202 return -SENSORS_ERR_WILDCARDS; … … 213 211 for (chip = NULL; (chip = sensors_for_all_config_chips(name, chip));) 214 212 for (i = 0; i < chip->ignores_count; i++) 215 if (!strcasecmp(featureptr->data.name, chip->ignores[i].name)) 216 return 0; /* Exact match always overrules! */ 217 else if (alt_featureptr && 218 !strcasecmp(alt_featureptr->data.name, 219 chip->ignores[i].name)) 220 res = 0; 221 return res; 213 if (!strcasecmp(featureptr->data.name, chip->ignores[i].name) || 214 (alt_featureptr && 215 !strcasecmp(alt_featureptr->data.name, chip->ignores[i].name))) 216 return 0; 217 /* valid */ 218 return 1; 222 219 } 223 220
