summaryrefslogtreecommitdiff
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-03 18:41:31 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-03 18:41:31 -0800
commit9db89cf785e61599a142c6db2f12cda75f35eb9d (patch)
tree2c62c9e9d8a2dce7160262c2cbd8b60b1d3b3128 /include/linux/suspend.h
parente7c215c1ed718234a9f68aab8d0900d97733fcca (diff)
[PATCH] Trivial cleanups for swsusp
From: Pavel Machek <pavel@ucw.cz> This kills unused part of struct and fixes spelling. It also fixes codingstyle a bit, converts "can not happen" panic into BUG_ON (fill_suspend_header() allocates no memory so panic is meaningless) and adds check for sizeof (struct link) [if that is not PAGE_SIZE, we have *bad* problem, better check early].
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r--include/linux/suspend.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index db4d007f4a8b..cd90591947bc 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -32,9 +32,6 @@ struct suspend_header {
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)