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:
59d2a71
)
parser: remove an unneeded check
author
Ran Benita
<ran@unusedvar.com>
Wed, 13 Nov 2019 21:37:47 +0000
(23:37 +0200)
committer
Ran Benita
<ran@unusedvar.com>
Thu, 14 Nov 2019 20:10:09 +0000
(22:10 +0200)
Signed-off-by: Ran Benita <ran@unusedvar.com>
src/xkbcomp/parser.y
patch
|
blob
|
history
diff --git
a/src/xkbcomp/parser.y
b/src/xkbcomp/parser.y
index
7145c1b
..
5a2f11e
100644
(file)
--- a/
src/xkbcomp/parser.y
+++ b/
src/xkbcomp/parser.y
@@
-258,13
+258,8
@@
XkbCompositeType: XKB_KEYMAP { $$ = FILE_TYPE_KEYMAP; }
;
XkbMapConfigList : XkbMapConfigList XkbMapConfig
- {
- if (!$2)
- $$ = $1;
- else
- $$ = (XkbFile *) AppendStmt((ParseCommon *) $1,
- (ParseCommon *) $2);
- }
+ { $$ = (XkbFile *) AppendStmt((ParseCommon *) $1,
+ (ParseCommon *) $2); }
| XkbMapConfig
{ $$ = $1; }
;