ia64/xen-unstable

diff xen/common/event_channel.c @ 9776:72f9c751d3ea

Replace &foo[0] with foo where the latter seems cleaner
(which is usually, and particularly when its an argument
to one of the bitops functions).

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 19 18:32:20 2006 +0100 (2006-04-19)
parents 050ad9813cdb
children 4e1b8be54311
line diff
     1.1 --- a/xen/common/event_channel.c	Wed Apr 19 18:24:49 2006 +0100
     1.2 +++ b/xen/common/event_channel.c	Wed Apr 19 18:32:20 2006 +0100
     1.3 @@ -477,10 +477,10 @@ void evtchn_set_pending(struct vcpu *v, 
     1.4       * others may require explicit memory barriers.
     1.5       */
     1.6  
     1.7 -    if ( test_and_set_bit(port, &s->evtchn_pending[0]) )
     1.8 +    if ( test_and_set_bit(port, s->evtchn_pending) )
     1.9          return;
    1.10  
    1.11 -    if ( !test_bit        (port, &s->evtchn_mask[0])    &&
    1.12 +    if ( !test_bit        (port, s->evtchn_mask) &&
    1.13           !test_and_set_bit(port / BITS_PER_LONG,
    1.14                             &v->vcpu_info->evtchn_pending_sel) &&
    1.15           !test_and_set_bit(0, &v->vcpu_info->evtchn_upcall_pending) )
    1.16 @@ -668,8 +668,8 @@ static long evtchn_unmask(evtchn_unmask_
    1.17       * These operations must happen in strict order. Based on
    1.18       * include/xen/event.h:evtchn_set_pending(). 
    1.19       */
    1.20 -    if ( test_and_clear_bit(port, &s->evtchn_mask[0]) &&
    1.21 -         test_bit          (port, &s->evtchn_pending[0]) &&
    1.22 +    if ( test_and_clear_bit(port, s->evtchn_mask) &&
    1.23 +         test_bit          (port, s->evtchn_pending) &&
    1.24           !test_and_set_bit (port / BITS_PER_LONG,
    1.25                              &v->vcpu_info->evtchn_pending_sel) &&
    1.26           !test_and_set_bit (0, &v->vcpu_info->evtchn_upcall_pending) )