[PATCH 1/1] fs/reiserfs/super.c: use UINT_MAX instead of (~0U)
From: Fabian Frederick
Date: Tue Jun 03 2014 - 15:14:25 EST
Use kernel.h definition
Cc: Jeff Mahoney <jeffm@xxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
fs/reiserfs/super.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 9fb2042..4d47b83 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -205,9 +205,9 @@ static int finish_unfinished(struct super_block *s)
/* compose key to look for "save" links */
max_cpu_key.version = KEY_FORMAT_3_5;
- max_cpu_key.on_disk_key.k_dir_id = ~0U;
- max_cpu_key.on_disk_key.k_objectid = ~0U;
- set_cpu_key_k_offset(&max_cpu_key, ~0U);
+ max_cpu_key.on_disk_key.k_dir_id = UINT_MAX;
+ max_cpu_key.on_disk_key.k_objectid = UINT_MAX;
+ set_cpu_key_k_offset(&max_cpu_key, UINT_MAX);
max_cpu_key.key_length = 3;
memset(&last_inode_key, 0, sizeof(last_inode_key));
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/