Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
xen
23310-xentrace_Remove_unneeded_cast_when_assign...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 23310-xentrace_Remove_unneeded_cast_when_assigning_pointer_value_to_dst.patch of Package xen
changeset: 23310:b7ca55907bd3 user: Olaf Hering <olaf@aepfle.de> date: Mon May 09 09:59:50 2011 +0100 files: xen/common/trace.c description: xentrace: Remove unneeded cast when assigning pointer value to dst Remove unneeded cast when assigning pointer value to dst. Both arrays are uint32_t and memcpy takes a void pointer. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- xen/common/trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: xen-4.1.2-testing/xen/common/trace.c =================================================================== --- xen-4.1.2-testing.orig/xen/common/trace.c +++ xen-4.1.2-testing/xen/common/trace.c @@ -483,7 +483,7 @@ static inline void __insert_record(struc const void *extra_data) { struct t_rec *rec; - unsigned char *dst; + uint32_t *dst; unsigned int extra_word = extra / sizeof(u32); unsigned int local_rec_size = calc_rec_size(cycles, extra); uint32_t next; @@ -508,13 +508,13 @@ static inline void __insert_record(struc rec->event = event; rec->extra_u32 = extra_word; - dst = (unsigned char *)rec->u.nocycles.extra_u32; + dst = rec->u.nocycles.extra_u32; if ( (rec->cycles_included = cycles) != 0 ) { u64 tsc = (u64)get_cycles(); rec->u.cycles.cycles_lo = (uint32_t)tsc; rec->u.cycles.cycles_hi = (uint32_t)(tsc >> 32); - dst = (unsigned char *)rec->u.cycles.extra_u32; + dst = rec->u.cycles.extra_u32; } if ( extra_data && extra )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor