summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörg Sonnenberger <joerg@NetBSD.org>2014-11-26 14:33:38 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2014-11-27 07:50:24 +1000
commit9fa04388dcbb5bf205319569f540a62c03754688 (patch)
tree467bd791fc847e57f57e611f4ec7699ef7b47625 /src
parent8a2381c13aecfdb42d85967e060c8818b86119d2 (diff)
Remove unnecessary check.
The vmods member of XkbNamesPtr is an array and thus never NULL. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/cout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cout.c b/src/cout.c
index aa1b22d..9e09fd9 100644
--- a/src/cout.c
+++ b/src/cout.c
@@ -45,7 +45,7 @@ WriteCHdrVMods(FILE *file, Display *dpy, XkbDescPtr xkb)
{
register int i, nOut;
- if ((!xkb) || (!xkb->names) || (!xkb->names->vmods))
+ if ((!xkb) || (!xkb->names))
return False;
for (i = nOut = 0; i < XkbNumVirtualMods; i++) {
if (xkb->names->vmods[i] != None) {