mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Fix parenthesization, but the code still looks wrong.
This commit is contained in:
parent
8aef171243
commit
485111b55b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43312
@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ahb.c,v 1.3 1998/09/17 00:08:26 gibbs Exp $
|
||||
* $Id: ahb.c,v 1.4 1998/10/09 21:38:31 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include "eisa.h"
|
||||
@ -171,8 +171,13 @@ ahbqueuembox(struct ahb_softc *ahb, u_int32_t mboxval, u_int attn_code)
|
||||
while (--loopmax) {
|
||||
u_int status;
|
||||
|
||||
/*
|
||||
* XXX - this still looks wrong, even after fixing the
|
||||
* parenthesization.
|
||||
*/
|
||||
|
||||
status = ahb_inb(ahb, HOSTSTAT);
|
||||
if ((status & HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY)
|
||||
if ((status & (HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY))
|
||||
!= HOSTSTAT_MBOX_EMPTY)
|
||||
break;
|
||||
DELAY(20);
|
||||
|
@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ahb.c,v 1.3 1998/09/17 00:08:26 gibbs Exp $
|
||||
* $Id: ahb.c,v 1.4 1998/10/09 21:38:31 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include "eisa.h"
|
||||
@ -171,8 +171,13 @@ ahbqueuembox(struct ahb_softc *ahb, u_int32_t mboxval, u_int attn_code)
|
||||
while (--loopmax) {
|
||||
u_int status;
|
||||
|
||||
/*
|
||||
* XXX - this still looks wrong, even after fixing the
|
||||
* parenthesization.
|
||||
*/
|
||||
|
||||
status = ahb_inb(ahb, HOSTSTAT);
|
||||
if ((status & HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY)
|
||||
if ((status & (HOSTSTAT_MBOX_EMPTY|HOSTSTAT_BUSY))
|
||||
!= HOSTSTAT_MBOX_EMPTY)
|
||||
break;
|
||||
DELAY(20);
|
||||
|
Loading…
Reference in New Issue
Block a user