X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Fx86%2Fplatform%2Folpc%2Folpc_dt.c;h=044bda5b3174f19c07a0fe9cb8b1ab1d77ca1b60;hb=4f680ceafafebed72c302d829d764de72710c169;hp=dab87464753058b10b7b3094c734126dcc862066;hpb=8bc26a008f61eac5631701cbd65f88c015a63280;p=mv-sheeva.git diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c index dab87464753..044bda5b317 100644 --- a/arch/x86/platform/olpc/olpc_dt.c +++ b/arch/x86/platform/olpc/olpc_dt.c @@ -140,8 +140,7 @@ void * __init prom_early_alloc(unsigned long size) * wasted bootmem) and hand off chunks of it to callers. */ res = alloc_bootmem(chunk_size); - if (!res) - return NULL; + BUG_ON(!res); prom_early_allocated += chunk_size; memset(res, 0, chunk_size); free_mem = chunk_size;