We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfeffd1 commit ac04fd6Copy full SHA for ac04fd6
arch/arm/mach-lpc32xx/pm.c
@@ -87,12 +87,8 @@ static int lpc32xx_pm_enter(suspend_state_t state)
87
88
/* Allocate some space for temporary IRAM storage */
89
iram_swap_area = kmalloc(lpc32xx_sys_suspend_sz, GFP_KERNEL);
90
- if (!iram_swap_area) {
91
- printk(KERN_ERR
92
- "PM Suspend: cannot allocate memory to save portion "
93
- "of SRAM\n");
+ if (!iram_swap_area)
94
return -ENOMEM;
95
- }
96
97
/* Backup a small area of IRAM used for the suspend code */
98
memcpy(iram_swap_area, (void *) TEMP_IRAM_AREA,
0 commit comments