Staging: fix !x & y
PATCH 1/1 Staging: fix !x & y
! has a higher precedence than &
Signed-off-by Roel Kluin <[email protected]>
---
drivers/staging/meilhaus/me1600_ao.c +1 -1
@@ -756,7 +756,7 @@ static int me1600_ao_io_single_write(me_subdevice_t * subdevice,queue_delayed_work (instance->me1600_workqueue, &instance->ao_control_task,1 ); -if ((!flags &ME_IO_SINGLE_TYPE_WRITE_NONBLOCKING ) && ((instance->ao_regs_shadows)->trigger & instance->ao_idx)) {//Blocking mode. Wait for software trigger. +if (!(flags &ME_IO_SINGLE_TYPE_WRITE_NONBLOCKING ) && ((instance->ao_regs_shadows)->trigger & instance->ao_idx)) {//Blocking mode. Wait for software trigger. if (time_out) { delay = (time_out *HZ ) /1000 ;if (delay ==0 )
drivers/staging/meilhaus/me4600_ao.c +1 -1
@@ -1025,7 +1025,7 @@ static int me4600_ao_io_stream_config(me_subdevice_t * subdevice, }if (flags &ME_IO_STREAM_CONFIG_HARDWARE_ONLY ) { -if (!flags &ME_IO_STREAM_CONFIG_WRAPAROUND ) { +if (!(flags &ME_IO_STREAM_CONFIG_WRAPAROUND )) {PERROR ("Hardware ME_IO_STREAM_CONFIG_HARDWARE_ONLY has to be with ME_IO_STREAM_CONFIG_WRAPAROUND.\n" );return ME_ERRNO_INVALID_FLAGS ;
drivers/staging/meilhaus/me6000_ao.c +1 -1
@@ -1063,7 +1063,7 @@ static int me6000_ao_io_stream_config(me_subdevice_t * subdevice, }if (flags &ME_IO_STREAM_CONFIG_HARDWARE_ONLY ) { -if (!flags &ME_IO_STREAM_CONFIG_WRAPAROUND ) { +if (!(flags &ME_IO_STREAM_CONFIG_WRAPAROUND )) {PERROR ("Hardware ME_IO_STREAM_CONFIG_HARDWARE_ONLY has to be with ME_IO_STREAM_CONFIG_WRAPAROUND.\n" );return ME_ERRNO_INVALID_FLAGS ;
drivers/staging/rt2860/sta_ioctl.c +1 -1
@@ -1756,7 +1756,7 @@ int rt_ioctl_siwencode(struct net_device *dev, }else /* Don't complain if only change the mode */ -if (!erq->flags &IW_ENCODE_MODE ) { +if (!(erq->flags &IW_ENCODE_MODE )) {return -EINVAL ; } }
drivers/staging/rt2870/sta_ioctl.c +1 -1
@@ -1776,7 +1776,7 @@ int rt_ioctl_siwencode(struct net_device *dev, }else /* Don't complain if only change the mode */ -if (!erq->flags &IW_ENCODE_MODE ) { +if (!(erq->flags &IW_ENCODE_MODE )) {return -EINVAL ; } }
drivers/staging/rt2870/tmp60 +1 -1
@@ -1776,7 +1776,7 @@ int rt_ioctl_siwencode(struct net_device *dev, } else /* Don't complain if only change the mode */ - if(!erq->flags & IW_ENCODE_MODE) { + if(!(erq->flags & IW_ENCODE_MODE)) { return -EINVAL; } }
drivers/staging/rt2870/tmp61 +1 -1
@@ -1776,7 +1776,7 @@ int rt_ioctl_siwencode(struct net_device *dev, } else /* Don't complain if only change the mode */ - if(!erq->flags & IW_ENCODE_MODE) { + if(!(erq->flags & IW_ENCODE_MODE)) { return -EINVAL; } }
drivers/staging/rtl8187se/r8180_core.c +1 -1
@@ -3161,7 +3161,7 @@ void rtl8180_prepare_beacon(struct net_device *dev)return ; } -//while(! *tail & (1<<31)){ +//while(!(*tail & (1<<31))){ *tail=0 ;// zeroes header *tail = *tail| (1 <<29 ) ;//fist segment of the packet
Quoted 3 lines · Roel Kluin
! has a higher precedence than &
Signed-off-by Roel Kluin <[email protected]>
Sorry, someone already beat you to this change :(
thanks,
greg k-h