瀏覽代碼

[GFS2] Style changes in rgrp.c

Change one constant plus remove a redundant !!.

Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Steven Whitehouse 18 年之前
父節點
當前提交
16910427e1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fs/gfs2/rgrp.c

+ 2 - 2
fs/gfs2/rgrp.c

@@ -29,7 +29,7 @@
 #include "ops_file.h"
 #include "ops_file.h"
 #include "util.h"
 #include "util.h"
 
 
-#define BFITNOENT 0xFFFFFFFF
+#define BFITNOENT (u32)~0
 
 
 /*
 /*
  * These routines are used by the resource group routines (rgrp.c)
  * These routines are used by the resource group routines (rgrp.c)
@@ -257,7 +257,7 @@ static inline int rgrp_contains_block(struct gfs2_rindex *ri, u64 block)
 {
 {
 	u64 first = ri->ri_data0;
 	u64 first = ri->ri_data0;
 	u64 last = first + ri->ri_data;
 	u64 last = first + ri->ri_data;
-	return !!(first <= block && block < last);
+	return first <= block && block < last;
 }
 }
 
 
 /**
 /**