Commit e60cfbcf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

A bit of FlexeLint nit-pickery

parent 68644d8b
......@@ -477,6 +477,8 @@ EXP_NukeLRU(struct worker *wrk, struct vsl_log *vsl, struct lru *lru)
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(lru, LRU_MAGIC);
memset(oc_array, 0, sizeof oc_array);
t = VTIM_real();
Lck_Lock(&lru->mtx);
while (!VTAILQ_EMPTY(&lru->lru_head)) {
......
......@@ -76,7 +76,7 @@ smp_appendban(struct smp_sc *sc, struct smp_signspace *spc,
(void)sc;
ptr = ptr2 = SIGNSPACE_FRONT(spc);
assert(SIGNSPACE_FREE(spc) >= 4 + 4 + len);
assert(SIGNSPACE_FREE(spc) >= 4L + 4 + len);
memcpy(ptr, "BAN", 4);
ptr += 4;
......@@ -412,7 +412,7 @@ smp_close(const struct stevedore *st)
CAST_OBJ_NOTNULL(sc, st->priv, SMP_SC_MAGIC);
pthread_join(sc->bgthread, &status);
AZ(pthread_join(sc->bgthread, &status));
AZ(status);
}
......
......@@ -269,8 +269,7 @@ smp_new_signspace(const struct smp_sc *sc, struct smp_signspace *spc,
void
smp_msync(void *addr, size_t length)
{
uintptr_t start, end;
int pagesize;
uintptr_t start, end, pagesize;
pagesize = getpagesize();
assert(pagesize > 0 && PWR2(pagesize));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment