Zhen Lei b4b797d877 mm/slab: remove duplicate check in create_cache()
The WARN_ON() check in static function create_cache() is done by its only
parent __kmem_cache_create_args() before calling it.
	if (... ||
	    WARN_ON(... ||
		    object_size - args->usersize < args->useroffset))
		args->usersize = args->useroffset = 0;
	...
	s = create_cache(cache_name, object_size, args, flags);

Therefore, the WARN_ON() check in create_cache() can be safely removed.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
2024-10-29 10:43:24 +01:00
..
2024-09-03 21:15:36 -07:00
2024-09-09 16:38:59 -07:00
2023-12-12 10:11:32 +01:00
2024-09-03 21:15:44 -07:00
2023-04-12 17:36:23 -07:00
2024-09-03 21:15:31 -07:00
2024-09-25 11:35:19 -07:00
2024-09-24 10:18:15 -07:00
2024-09-01 20:26:01 -07:00
2024-09-03 21:15:31 -07:00
2024-08-15 22:16:14 -07:00
2024-07-10 12:14:54 -07:00
2024-09-01 20:26:04 -07:00
\n
2024-09-23 10:49:28 -07:00
2024-09-01 14:43:08 -07:00
2024-09-09 16:38:59 -07:00
2023-04-12 17:36:23 -07:00
2024-09-09 16:39:04 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00