summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 02:15:55 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 02:15:55 +0000
commitf6ca2b3ea92b7fe98408c51a17a590435e808b1d (patch)
tree2afe1cf7d324dacb96ce575050a2e568f5092d3a
parent9b9dd747d8f4697c6d5c947c160d5991c7c8fde5 (diff)
Coverity #38: Dead branch elimination.
-rw-r--r--ChangeLog5
-rw-r--r--hw/dmx/glxProxy/glxcmds.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a16b9f88..a902294ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-04-02 Adam Jackson <ajax@freedesktop.org>
+ * hw/dmx/glxProxy/glxcmds.c:
+ Coverity #38: Dead branch elimination.
+
+2006-04-02 Adam Jackson <ajax@freedesktop.org>
+
* Xext/sync.c:
Coverity #75: Dead variable elimination.
diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c
index 8c466e13c..fe1d3571f 100644
--- a/hw/dmx/glxProxy/glxcmds.c
+++ b/hw/dmx/glxProxy/glxcmds.c
@@ -3619,7 +3619,7 @@ int __glXSendLargeCommand(__GLXclientState *cl, GLXContextTag contextTag)
GetReq(GLXRenderLarge,req);
req->reqType = dmxScreen->glxMajorOpcode;
req->glxCode = X_GLXRenderLarge;
- req->contextTag = (glxc ? GetCurrentBackEndTag(cl,contextTag,s) : 0);
+ req->contextTag = GetCurrentBackEndTag(cl,contextTag,s);
req->length += (amount + 3) >> 2;
req->requestNumber = requestNumber++;
req->requestTotal = totalRequests;