diff options
author | Matthew Garrett <mjg@redhat.com> | 2011-07-21 22:57:54 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2011-07-23 01:14:29 +0200 |
commit | b94fdd077eef5e6cab56836bf62695b497946716 (patch) | |
tree | f1278f560084e6689a88a4e47f81484ffdb113df /fs/pstore | |
parent | pstore: Add extra context for writes and erases (diff) | |
download | linux-b94fdd077eef5e6cab56836bf62695b497946716.tar.xz linux-b94fdd077eef5e6cab56836bf62695b497946716.zip |
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.c | 3 |
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, unsigned long size, total = 0; char *dst, *why; u64 id; - int hsize, part = 1; + int hsize; + unsigned int part = 1; if (reason < ARRAY_SIZE(reason_str)) why = reason_str[reason]; |