diff options
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_inline.h | 3 | ||||
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_inline.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_inline.h b/drivers/scsi/aic7xxx/aic79xx_inline.h index 8ad3ce945b9e..a3266e066c00 100644 --- a/drivers/scsi/aic7xxx/aic79xx_inline.h +++ b/drivers/scsi/aic7xxx/aic79xx_inline.h | |||
@@ -527,7 +527,8 @@ ahd_inw(struct ahd_softc *ahd, u_int port) | |||
527 | * or have other side effects when the low byte is | 527 | * or have other side effects when the low byte is |
528 | * read. | 528 | * read. |
529 | */ | 529 | */ |
530 | return ((ahd_inb(ahd, port+1) << 8) | ahd_inb(ahd, port)); | 530 | uint16_t r = ahd_inb(ahd, port+1) << 8; |
531 | return r | ahd_inb(ahd, port); | ||
531 | } | 532 | } |
532 | 533 | ||
533 | static __inline void | 534 | static __inline void |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_inline.h b/drivers/scsi/aic7xxx/aic7xxx_inline.h index 2cc8a17ed8b4..8e1954cdd84f 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_inline.h +++ b/drivers/scsi/aic7xxx/aic7xxx_inline.h | |||
@@ -300,7 +300,8 @@ ahc_fetch_transinfo(struct ahc_softc *ahc, char channel, u_int our_id, | |||
300 | static __inline uint16_t | 300 | static __inline uint16_t |
301 | ahc_inw(struct ahc_softc *ahc, u_int port) | 301 | ahc_inw(struct ahc_softc *ahc, u_int port) |
302 | { | 302 | { |
303 | return ((ahc_inb(ahc, port+1) << 8) | ahc_inb(ahc, port)); | 303 | uint16_t r = ahc_inb(ahc, port+1) << 8; |
304 | return r | ahc_inb(ahc, port); | ||
304 | } | 305 | } |
305 | 306 | ||
306 | static __inline void | 307 | static __inline void |