It has zero value.
Showing the changes to lib/debugobjects.c (1 of 1 file). Show all
Unified · Split
| @@ -1303,7 +1303,7 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache · 1302 unmodified lines | ||
| 1303 | 1303 | struct debug_obj *obj, *new; |
| 1304 | 1304 | struct hlist_node *tmp; |
| 1305 | 1305 | HLIST_HEAD(objects); |
| 1306 | − int i, cnt = 0; | |
| 1306 | + int i; | |
| 1307 | 1307 | |
| 1308 | 1308 | for (i = 0; i < ODEBUG_POOL_SIZE; i++) { |
| 1309 | 1309 | obj = kmem_cache_zalloc(cache, GFP_KERNEL); |
| @@ -1330,11 +1330,8 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache · 20 unmodified lines | ||
| 1330 | 1330 | /* copy object data */ |
| 1331 | 1331 | *new = *obj; |
| 1332 | 1332 | hlist_add_head(&new->node, &db->list); |
| 1333 | − cnt++; | |
| 1334 | 1333 | } |
| 1335 | 1334 | } |
| 1336 | − | |
| 1337 | − pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used); | |
| 1338 | 1335 | return true; |
| 1339 | 1336 | free: |
| 1340 | 1337 | hlist_for_each_entry_safe(obj, tmp, &objects, node) { |