Skip to contentSkip to conversation

Trivial cleanups for swsusp

PATCH Pavel Machek 1 participant 1 message Jan 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

This kills unused part of struct and fixes spelling. Please apply,

Pavel

include/linux/suspend.h +0 -3
Index: linux/include/linux/suspend.h
===================================================================
@@ -32,9 +33,6 @@
 	int page_size;
 	suspend_pagedir_t *suspend_pagedir;
 	unsigned int num_pbes;
-	struct swap_location {
-		char filename[SWAP_FILENAME_MAXLENGTH];
-	} swap_location[MAX_SWAPFILES];
 };
 
 #define SUSPEND_PD_PAGES(x)     (((x)*sizeof(struct pbe))/PAGE_SIZE+1)
kernel/power/swsusp.c +2 -2
Index: linux/kernel/power/swsusp.c
===================================================================
@@ -283,8 +287,8 @@
  *    would happen on next reboot -- corrupting data.
  *
  *    Note: The buffer we allocate to use to write the suspend header is
- *    not freed; its not needed since system is going down anyway
- *    (plus it causes oops and I'm lazy^H^H^H^Htoo busy).
+ *    not freed; its not needed since the system is going down anyway
+ *    (plus it causes an oops and I'm lazy^H^H^H^Htoo busy).
  */
 static int write_suspend_image(void)
 {
Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]