From 13f34170de3228461b876019011b9fa6666a777e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 26 Jan 2013 20:49:09 -0300 Subject: [PATCH] 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. --- ubb-la/ubb-la.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubb-la/ubb-la.c b/ubb-la/ubb-la.c index adff9ce..6dffde4 100644 --- a/ubb-la/ubb-la.c +++ b/ubb-la/ubb-la.c @@ -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);