X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Famd_nb.c;h=697461884e23015412a1ff31ffd88e0a9e21be45;hp=be16854591cc26a2b0349b6f7d9e0cc446340e32;hb=faaea5c5f2bb1266ea35a1dcbe0b685f826f6637;hpb=a620c002d0a7c101f8e5790a6f57aa62209693f4 diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c index be16854591cc..697461884e23 100644 --- a/arch/x86/kernel/amd_nb.c +++ b/arch/x86/kernel/amd_nb.c @@ -59,8 +59,8 @@ int amd_cache_northbridges(void) while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL) i++; - if (i == 0) - return 0; + if (!i) + return -ENODEV; nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL); if (!nb)