[PATCH libxkbfile 10/12] Remove useless comparisson
Pauli Nieminen
ext-pauli.nieminen at nokia.com
Wed Jul 21 05:02:54 PDT 2010
Because xkb->names->vmods is array inside structure pointer to it is
always valid if xkb->names is valid pointer.
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
src/cout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cout.c b/src/cout.c
index 70aa370..69ed473 100644
--- a/src/cout.c
+++ b/src/cout.c
@@ -47,7 +47,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) {
--
1.6.3.3
More information about the xorg-devel
mailing list