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:
efe2880
)
expr: simplify ExprResolveButton
author
Ran Benita
<ran234@gmail.com>
Sat, 15 Feb 2014 20:59:12 +0000
(22:59 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sat, 15 Feb 2014 20:59:12 +0000
(22:59 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/expr.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/expr.c
b/src/xkbcomp/expr.c
index 7b6ecc9c4be5abc03087c38dfae4a5d87b00dd45..c514f8d54c5d8474d1e23898e931e988581af51b 100644
(file)
--- a/
src/xkbcomp/expr.c
+++ b/
src/xkbcomp/expr.c
@@
-427,14
+427,8
@@
ExprResolveLevel(struct xkb_context *ctx, const ExprDef *expr,
bool
ExprResolveButton(struct xkb_context *ctx, const ExprDef *expr, int *btn_rtrn)
{
- int result;
-
- if (!ExprResolveIntegerLookup(ctx, expr, &result, SimpleLookup,
- buttonNames))
- return false;
-
- *btn_rtrn = result;
- return true;
+ return ExprResolveIntegerLookup(ctx, expr, btn_rtrn, SimpleLookup,
+ buttonNames);
}
bool