aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/amd_nb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c
index a147e676fc7b..e991d5c8bb3a 100644
--- a/arch/x86/kernel/amd_nb.c
+++ b/arch/x86/kernel/amd_nb.c
@@ -71,8 +71,8 @@ int amd_cache_northbridges(void)
71 while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL) 71 while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL)
72 i++; 72 i++;
73 73
74 if (i == 0) 74 if (!i)
75 return 0; 75 return -ENODEV;
76 76
77 nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL); 77 nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL);
78 if (!nb) 78 if (!nb)