|
From: <sv...@va...> - 2013-01-27 10:56:19
|
bart 2013-01-27 10:56:04 +0000 (Sun, 27 Jan 2013)
New Revision: 13270
Log:
drd: Avoid that Coverity complains about a dead assignment
Thanks to Florian for reporting this.
Modified files:
trunk/drd/drd_cond.c
Modified: trunk/drd/drd_cond.c (+2 -3)
===================================================================
--- trunk/drd/drd_cond.c 2013-01-26 16:45:01 +00:00 (rev 13269)
+++ trunk/drd/drd_cond.c 2013-01-27 10:56:04 +00:00 (rev 13270)
@@ -152,8 +152,7 @@
p = DRD_(cond_get)(cond);
- if (p)
- {
+ if (p) {
CondErrInfo cei = { .tid = DRD_(thread_get_running_tid)(), .cond = cond };
VG_(maybe_record_error)(VG_(get_running_tid)(),
CondErr,
@@ -162,7 +161,7 @@
&cei);
}
- p = cond_get_or_allocate(cond);
+ cond_get_or_allocate(cond);
}
/** Called after pthread_cond_destroy(). */
|