Commit 2eba51c0f603535dc2663f2666437305b287efb3

Ran Benita 2012-08-27T09:37:01

symbols: remove comparison of unsigned >= 0 clang warning. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c
index a48edbb..90e5da0 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -1585,7 +1585,7 @@ FindAutomaticType(struct xkb_keymap *keymap, xkb_level_index_t width,
             *typeNameRtrn = xkb_atom_intern(keymap->ctx, "FOUR_LEVEL");
         /* XXX: why not set autoType here? */
     }
-    return ((width >= 0) && (width <= 4));
+    return width <= 4;
 }
 
 /**