Clean up minor pieces of lint
This commit is contained in:
parent
702f5adb30
commit
167587fd07
|
@ -467,7 +467,7 @@ limited_read_scalar(unsigned *dest, unsigned length,
|
|||
unsigned n;
|
||||
|
||||
assert(length <= 4);
|
||||
assert(/*CONSTCOND*/sizeof(*dest) >= sizeof(uint32_t));
|
||||
assert(/*CONSTCOND*/sizeof(*dest) >= 4);
|
||||
if (!limited_read(c, length, region, pinfo))
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -2098,9 +2098,9 @@ mmap_reader(void *dest, size_t length, __ops_error_t **errors,
|
|||
char *cmem = mem->mem;
|
||||
int n;
|
||||
|
||||
(void)&errors;
|
||||
n = MIN(length, (int)(mem->size - mem->offset));
|
||||
OPS_USED(errors);
|
||||
OPS_USED(cbinfo);
|
||||
n = MIN(length, (int)(mem->size - mem->offset));
|
||||
if (n > 0) {
|
||||
(void) memcpy(dest, &cmem[(int)mem->offset], (unsigned)n);
|
||||
mem->offset += n;
|
||||
|
|
Loading…
Reference in New Issue