mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release
We agreed to remove the WARN_ON_ONCE before 2.6.22 is released. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0f4915b9c5
commit
17022220dd
1 changed files with 0 additions and 1 deletions
|
@ -774,7 +774,6 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
|
|||
*/
|
||||
BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL);
|
||||
#endif
|
||||
WARN_ON_ONCE(size == 0);
|
||||
while (size > csizep->cs_size)
|
||||
csizep++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue