Browse files

Remove pointless assertion check.

Checking an assertion on an enum generates a warning.  I don't think
the compiler should be warning here since it's an assertion, but
it does and seeing the warning is annoying.
  • Loading branch information...
1 parent 4fcfa25 commit 88ae3b3fc92ebfb0ece0427d95c374525133ca1f @ingenthr committed Apr 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 metrics.c
View
2 metrics.c
@@ -79,7 +79,7 @@ static int compare(const void *p1, const void *p2)
* External interface
*/
void record_tx(enum TxnType tx_type, hrtime_t tx_time, struct thread_context *ctx) {
- assert(tx_type >= 0 && tx_type < (TX_CAS - TX_GET));
+ assert(tx_type < (TX_CAS - TX_GET));
ctx->tx[tx_type].set[ctx->tx[tx_type].current++] = tx_time;
}

0 comments on commit 88ae3b3

Please sign in to comment.