aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_inline.h')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_inline.h3
1 files changed, 2 insertions, 1 deletions
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,
300static __inline uint16_t 300static __inline uint16_t
301ahc_inw(struct ahc_softc *ahc, u_int port) 301ahc_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
306static __inline void 307static __inline void