Skip to contentSkip to conversation

fs/reiserfs/super.c: use UINT_MAX instead of (~0U)

PATCH New Fabian Frederick 1 participant 1 message Jun 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/reiserfs/super.c: use UINT_MAX instead of (~0U)

Use kernel.h definition

Cc Jeff Mahoney <[email protected]>
Cc Andrew Morton <[email protected]>
---
 fs/reiserfs/super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/reiserfs/super.c +3 -3
index 9fb2042..4d47b83 100644
@@ -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));
Signature · 1 line
1.8.4.5