1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-24 05:44:03 +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:
Werner Almesberger 2013-01-26 20:49:09 -03:00
parent b0d89b25eb
commit 13f34170de

View File

@ -211,7 +211,7 @@ static int do_buf(int nibbles, uint32_t trigger, uint32_t mask)
memset(buf, 0, 4096); memset(buf, 0, 4096);
physmem_flush(buf, 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) { if (n != 1) {
fprintf(stderr, "physmem_xlat_vec: expected 1, got %d\n", n); fprintf(stderr, "physmem_xlat_vec: expected 1, got %d\n", n);
exit(1); exit(1);