projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32bf405
)
kbproto unentanglement: XkbMaxShiftLevel
author
Daniel Stone
<daniel@fooishbar.org>
Mon, 10 Sep 2012 20:05:04 +0000
(21:05 +0100)
committer
Daniel Stone
<daniel@fooishbar.org>
Mon, 10 Sep 2012 20:05:17 +0000
(21:05 +0100)
... by removing its only use.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/expr.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/expr.c
b/src/xkbcomp/expr.c
index
72b94d7
..
4ed5cfa
100644
(file)
--- a/
src/xkbcomp/expr.c
+++ b/
src/xkbcomp/expr.c
@@
-418,9
+418,8
@@
ExprResolveLevel(struct xkb_context *ctx, const ExprDef *expr,
if (!ok)
return false;
- if (result < 1 || result > XkbMaxShiftLevel) {
- log_err(ctx, "Shift level %d is out of range (1..%d)\n",
- result, XkbMaxShiftLevel);
+ if (result < 1) {
+ log_err(ctx, "Shift level %d is out of range\n", result);
return false;
}