aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2011-07-21 16:57:54 -0400
committerTony Luck <tony.luck@intel.com>2011-07-22 19:14:29 -0400
commitb94fdd077eef5e6cab56836bf62695b497946716 (patch)
treef1278f560084e6689a88a4e47f81484ffdb113df /fs/pstore
parent56280682ceeef74b692b3e21d1872049eea7c887 (diff)
pstore: Make "part" unsigned
We'll never have a negative part, so just make this an unsigned int. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/platform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 163bb40511e7..49ff1de2178a 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -67,7 +67,8 @@ static void pstore_dump(struct kmsg_dumper *dumper,
67 unsigned long size, total = 0; 67 unsigned long size, total = 0;
68 char *dst, *why; 68 char *dst, *why;
69 u64 id; 69 u64 id;
70 int hsize, part = 1; 70 int hsize;
71 unsigned int part = 1;
71 72
72 if (reason < ARRAY_SIZE(reason_str)) 73 if (reason < ARRAY_SIZE(reason_str))
73 why = reason_str[reason]; 74 why = reason_str[reason];