From d804af99e2dfaf20b99822066a37d586f12c8a5f Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 27 Jun 2013 17:16:38 +0200 Subject: 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 Reviewed-by: Alan Coopersmith Signed-off-by: Peter Hutterer --- src/XGetFCtl.c | 3 --- 1 file changed, 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)); } -- cgit v1.2.3