Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Unconditionally avoi...
details: https://anonhg.NetBSD.org/src/rev/97448bdb1f44
branches: riastradh-drm2
changeset: 788550:97448bdb1f44
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 08 16:10:23 2013 +0000
description:
Unconditionally avoid arithmetic on void * in drm_bufs.c.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_bufs.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (15 lines):
diff -r 5b37a31a9f61 -r 97448bdb1f44 sys/external/bsd/drm2/dist/drm/drm_bufs.c
--- a/sys/external/bsd/drm2/dist/drm/drm_bufs.c Sun Sep 08 16:09:35 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_bufs.c Sun Sep 08 16:10:23 2013 +0000
@@ -942,11 +942,7 @@
buf->order = order;
buf->used = 0;
buf->offset = (dma->byte_count + byte_count + offset);
-#ifdef __NetBSD__
buf->address = (void *)((char *)dmah->vaddr + offset);
-#else
- buf->address = (void *)(dmah->vaddr + offset);
-#endif
buf->bus_address = dmah->busaddr + offset;
buf->next = NULL;
buf->waiting = 0;
Home |
Main Index |
Thread Index |
Old Index