mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-16 18:45:54 +02:00
ubb-la/ubb-la.c (do_buf): physmem_xlat doesn't need a cast
We inherited the cast from ubb-patgen where the buffer was "const" and thus had to be cast for the the non-const argument of physmem_xlat. We never needed a cast in ubb-la, though. Since physmem_xlat now uses "const" as well, the cast is even doubly superfluous.
This commit is contained in:
parent
b0d89b25eb
commit
13f34170de
@ -211,7 +211,7 @@ static int do_buf(int nibbles, uint32_t trigger, uint32_t mask)
|
||||
memset(buf, 0, 4096);
|
||||
physmem_flush(buf, 4096);
|
||||
|
||||
n = physmem_xlat((void *) buf, nibbles >> 1, &vec, 1);
|
||||
n = physmem_xlat(buf, nibbles >> 1, &vec, 1);
|
||||
if (n != 1) {
|
||||
fprintf(stderr, "physmem_xlat_vec: expected 1, got %d\n", n);
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user