summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2013-06-27 17:16:38 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2013-06-28 06:07:19 +1000
commitd804af99e2dfaf20b99822066a37d586f12c8a5f (patch)
treefa2503a05d9d01a1452a65dfa0e3d3805ea5a012 /src
parent957a9d64afd76f878ce6c5570f369e2a7fc1e772 (diff)
Remove check that can never be true.
clang warns: warning: comparison of constant 268435455 with expression of type 'CARD16' (aka 'unsigned short') is always false Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/XGetFCtl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/XGetFCtl.c b/src/XGetFCtl.c
index bb50bf3..2d71fab 100644
--- a/src/XGetFCtl.c
+++ b/src/XGetFCtl.c
@@ -125,9 +125,6 @@ XGetFeedbackControl(
case StringFeedbackClass:
{
xStringFeedbackState *strf = (xStringFeedbackState *) f;
-
- if (strf->num_syms_supported >= (INT_MAX / sizeof(KeySym)))
- goto out;
size += sizeof(XStringFeedbackState) +
(strf->num_syms_supported * sizeof(KeySym));
}