aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-03-08 03:14:37 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-12 10:18:47 -0500
commit5c1b85e209af41c7e99a2bfd21dc8fe840b342d8 (patch)
tree520afd25c5581cbf90bc5c8cbfbd361d498aeffe
parent5c04a7b8981f2855869bf04c881553135445d701 (diff)
[SCSI] drivers/scsi/FlashPoint.c: don't use parenthesis with "return"
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/FlashPoint.c130
1 files changed, 65 insertions, 65 deletions
diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
index ce49fbcafbb6..8e3d949b7118 100644
--- a/drivers/scsi/FlashPoint.c
+++ b/drivers/scsi/FlashPoint.c
@@ -945,16 +945,16 @@ static int FlashPoint_ProbeHostAdapter(struct sccb_mgr_info *pCardInfo)
945 ioport = pCardInfo->si_baseaddr; 945 ioport = pCardInfo->si_baseaddr;
946 946
947 if (RD_HARPOON(ioport + hp_vendor_id_0) != ORION_VEND_0) 947 if (RD_HARPOON(ioport + hp_vendor_id_0) != ORION_VEND_0)
948 return ((int)FAILURE); 948 return (int)FAILURE;
949 949
950 if ((RD_HARPOON(ioport + hp_vendor_id_1) != ORION_VEND_1)) 950 if ((RD_HARPOON(ioport + hp_vendor_id_1) != ORION_VEND_1))
951 return ((int)FAILURE); 951 return (int)FAILURE;
952 952
953 if ((RD_HARPOON(ioport + hp_device_id_0) != ORION_DEV_0)) 953 if ((RD_HARPOON(ioport + hp_device_id_0) != ORION_DEV_0))
954 return ((int)FAILURE); 954 return (int)FAILURE;
955 955
956 if ((RD_HARPOON(ioport + hp_device_id_1) != ORION_DEV_1)) 956 if ((RD_HARPOON(ioport + hp_device_id_1) != ORION_DEV_1))
957 return ((int)FAILURE); 957 return (int)FAILURE;
958 958
959 if (RD_HARPOON(ioport + hp_rev_num) != 0x0f) { 959 if (RD_HARPOON(ioport + hp_rev_num) != 0x0f) {
960 960
@@ -964,7 +964,7 @@ static int FlashPoint_ProbeHostAdapter(struct sccb_mgr_info *pCardInfo)
964 device. */ 964 device. */
965 965
966 if (RD_HARPOON(ioport + hp_sub_device_id_0) & 0x0f) 966 if (RD_HARPOON(ioport + hp_sub_device_id_0) & 0x0f)
967 return ((int)FAILURE); 967 return (int)FAILURE;
968 } 968 }
969 969
970 if (first_time) { 970 if (first_time) {
@@ -986,7 +986,7 @@ static int FlashPoint_ProbeHostAdapter(struct sccb_mgr_info *pCardInfo)
986 pCurrNvRam->niBaseAddr = ioport; 986 pCurrNvRam->niBaseAddr = ioport;
987 FPT_RNVRamData(pCurrNvRam); 987 FPT_RNVRamData(pCurrNvRam);
988 } else 988 } else
989 return ((int)FAILURE); 989 return (int)FAILURE;
990 } 990 }
991 } else 991 } else
992 pCurrNvRam = NULL; 992 pCurrNvRam = NULL;
@@ -1194,7 +1194,7 @@ static int FlashPoint_ProbeHostAdapter(struct sccb_mgr_info *pCardInfo)
1194 1194
1195 pCardInfo->si_present = 0x01; 1195 pCardInfo->si_present = 0x01;
1196 1196
1197 return (0); 1197 return 0;
1198} 1198}
1199 1199
1200/*--------------------------------------------------------------------- 1200/*---------------------------------------------------------------------
@@ -1220,7 +1220,7 @@ static unsigned long FlashPoint_HardwareResetHostAdapter(struct sccb_mgr_info
1220 1220
1221 if (thisCard == MAX_CARDS) { 1221 if (thisCard == MAX_CARDS) {
1222 1222
1223 return (FAILURE); 1223 return FAILURE;
1224 } 1224 }
1225 1225
1226 if (FPT_BL_Card[thisCard].ioPort == ioport) { 1226 if (FPT_BL_Card[thisCard].ioPort == ioport) {
@@ -1388,7 +1388,7 @@ static unsigned long FlashPoint_HardwareResetHostAdapter(struct sccb_mgr_info
1388 (unsigned char)(RD_HARPOON((ioport + hp_semaphore)) | 1388 (unsigned char)(RD_HARPOON((ioport + hp_semaphore)) |
1389 SCCB_MGR_PRESENT)); 1389 SCCB_MGR_PRESENT));
1390 1390
1391 return ((unsigned long)CurrCard); 1391 return (unsigned long)CurrCard;
1392} 1392}
1393 1393
1394static void FlashPoint_ReleaseHostAdapter(unsigned long pCurrCard) 1394static void FlashPoint_ReleaseHostAdapter(unsigned long pCurrCard)
@@ -1460,7 +1460,7 @@ static void FPT_RNVRamData(struct nvram_info *pNvRamInfo)
1460static unsigned char FPT_RdStack(unsigned long portBase, unsigned char index) 1460static unsigned char FPT_RdStack(unsigned long portBase, unsigned char index)
1461{ 1461{
1462 WR_HARPOON(portBase + hp_stack_addr, index); 1462 WR_HARPOON(portBase + hp_stack_addr, index);
1463 return (RD_HARPOON(portBase + hp_stack_data)); 1463 return RD_HARPOON(portBase + hp_stack_data);
1464} 1464}
1465 1465
1466static void FPT_WrStack(unsigned long portBase, unsigned char index, 1466static void FPT_WrStack(unsigned long portBase, unsigned char index,
@@ -1473,14 +1473,14 @@ static void FPT_WrStack(unsigned long portBase, unsigned char index,
1473static unsigned char FPT_ChkIfChipInitialized(unsigned long ioPort) 1473static unsigned char FPT_ChkIfChipInitialized(unsigned long ioPort)
1474{ 1474{
1475 if ((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4)) 1475 if ((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4))
1476 return (0); 1476 return 0;
1477 if ((RD_HARPOON(ioPort + hp_clkctrl_0) & CLKCTRL_DEFAULT) 1477 if ((RD_HARPOON(ioPort + hp_clkctrl_0) & CLKCTRL_DEFAULT)
1478 != CLKCTRL_DEFAULT) 1478 != CLKCTRL_DEFAULT)
1479 return (0); 1479 return 0;
1480 if ((RD_HARPOON(ioPort + hp_seltimeout) == TO_250ms) || 1480 if ((RD_HARPOON(ioPort + hp_seltimeout) == TO_250ms) ||
1481 (RD_HARPOON(ioPort + hp_seltimeout) == TO_290ms)) 1481 (RD_HARPOON(ioPort + hp_seltimeout) == TO_290ms))
1482 return (1); 1482 return 1;
1483 return (0); 1483 return 0;
1484 1484
1485} 1485}
1486 1486
@@ -1642,14 +1642,14 @@ static int FlashPoint_AbortCCB(unsigned long pCurrCard, struct sccb *p_Sccb)
1642 callback = p_Sccb->SccbCallback; 1642 callback = p_Sccb->SccbCallback;
1643 callback(p_Sccb); 1643 callback(p_Sccb);
1644 1644
1645 return (0); 1645 return 0;
1646 } 1646 }
1647 1647
1648 else { 1648 else {
1649 if (((struct sccb_card *)pCurrCard)->currentSCCB == 1649 if (((struct sccb_card *)pCurrCard)->currentSCCB ==
1650 p_Sccb) { 1650 p_Sccb) {
1651 p_Sccb->SccbStatus = SCCB_ABORT; 1651 p_Sccb->SccbStatus = SCCB_ABORT;
1652 return (0); 1652 return 0;
1653 1653
1654 } 1654 }
1655 1655
@@ -1691,7 +1691,7 @@ static int FlashPoint_AbortCCB(unsigned long pCurrCard, struct sccb *p_Sccb)
1691 } 1691 }
1692 } 1692 }
1693 MENABLE_INT(ioport); 1693 MENABLE_INT(ioport);
1694 return (0); 1694 return 0;
1695 } else { 1695 } else {
1696 currTar_Info = 1696 currTar_Info =
1697 &FPT_sccbMgrTbl[thisCard][p_Sccb-> 1697 &FPT_sccbMgrTbl[thisCard][p_Sccb->
@@ -1702,13 +1702,13 @@ static int FlashPoint_AbortCCB(unsigned long pCurrCard, struct sccb *p_Sccb)
1702 LunDiscQ_Idx[p_Sccb->Lun]] 1702 LunDiscQ_Idx[p_Sccb->Lun]]
1703 == p_Sccb) { 1703 == p_Sccb) {
1704 p_Sccb->SccbStatus = SCCB_ABORT; 1704 p_Sccb->SccbStatus = SCCB_ABORT;
1705 return (0); 1705 return 0;
1706 } 1706 }
1707 } 1707 }
1708 } 1708 }
1709 } 1709 }
1710 } 1710 }
1711 return (-1); 1711 return -1;
1712} 1712}
1713 1713
1714/*--------------------------------------------------------------------- 1714/*---------------------------------------------------------------------
@@ -1726,12 +1726,12 @@ static unsigned char FlashPoint_InterruptPending(unsigned long pCurrCard)
1726 ioport = ((struct sccb_card *)pCurrCard)->ioPort; 1726 ioport = ((struct sccb_card *)pCurrCard)->ioPort;
1727 1727
1728 if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) { 1728 if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) {
1729 return (1); 1729 return 1;
1730 } 1730 }
1731 1731
1732 else 1732 else
1733 1733
1734 return (0); 1734 return 0;
1735} 1735}
1736 1736
1737/*--------------------------------------------------------------------- 1737/*---------------------------------------------------------------------
@@ -1783,7 +1783,7 @@ static int FlashPoint_HandleInterrupt(unsigned long pCurrCard)
1783 if (result) { 1783 if (result) {
1784 1784
1785 MENABLE_INT(ioport); 1785 MENABLE_INT(ioport);
1786 return (result); 1786 return result;
1787 } 1787 }
1788 } 1788 }
1789 1789
@@ -1997,7 +1997,7 @@ static int FlashPoint_HandleInterrupt(unsigned long pCurrCard)
1997 1997
1998 MENABLE_INT(ioport); 1998 MENABLE_INT(ioport);
1999 1999
2000 return (0); 2000 return 0;
2001} 2001}
2002 2002
2003/*--------------------------------------------------------------------- 2003/*---------------------------------------------------------------------
@@ -2092,7 +2092,7 @@ static unsigned char FPT_SccbMgr_bad_isr(unsigned long p_port,
2092 2092
2093 FPT_scini(p_card, pCurrCard->ourId, 0); 2093 FPT_scini(p_card, pCurrCard->ourId, 0);
2094 2094
2095 return (0xFF); 2095 return 0xFF;
2096 } 2096 }
2097 2097
2098 else if (p_int & FIFO) { 2098 else if (p_int & FIFO) {
@@ -2150,7 +2150,7 @@ static unsigned char FPT_SccbMgr_bad_isr(unsigned long p_port,
2150 WRW_HARPOON((p_port + hp_intstat), SCAM_SEL); 2150 WRW_HARPOON((p_port + hp_intstat), SCAM_SEL);
2151 } 2151 }
2152 2152
2153 return (0x00); 2153 return 0x00;
2154} 2154}
2155 2155
2156/*--------------------------------------------------------------------- 2156/*---------------------------------------------------------------------
@@ -2295,12 +2295,12 @@ static unsigned char FPT_sfm(unsigned long port, struct sccb *pCurrSCCB)
2295 } 2295 }
2296 if (TimeOutLoop > 20000) { 2296 if (TimeOutLoop > 20000) {
2297 WRW_HARPOON((port + hp_intstat), PARITY); 2297 WRW_HARPOON((port + hp_intstat), PARITY);
2298 return (message); 2298 return message;
2299 } 2299 }
2300 if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) != 2300 if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) !=
2301 S_MSGI_PH) { 2301 S_MSGI_PH) {
2302 WRW_HARPOON((port + hp_intstat), PARITY); 2302 WRW_HARPOON((port + hp_intstat), PARITY);
2303 return (message); 2303 return message;
2304 } 2304 }
2305 WR_HARPOON(port + hp_portctrl_0, SCSI_PORT); 2305 WR_HARPOON(port + hp_portctrl_0, SCSI_PORT);
2306 2306
@@ -2315,7 +2315,7 @@ static unsigned char FPT_sfm(unsigned long port, struct sccb *pCurrSCCB)
2315 WR_HARPOON(port + hp_xferstat, 0); 2315 WR_HARPOON(port + hp_xferstat, 0);
2316 WR_HARPOON(port + hp_fiforead, 0); 2316 WR_HARPOON(port + hp_fiforead, 0);
2317 WR_HARPOON(port + hp_fifowrite, 0); 2317 WR_HARPOON(port + hp_fifowrite, 0);
2318 return (message); 2318 return message;
2319} 2319}
2320 2320
2321/*--------------------------------------------------------------------- 2321/*---------------------------------------------------------------------
@@ -3219,14 +3219,14 @@ static unsigned char FPT_sisyncn(unsigned long port, unsigned char p_card,
3219 (AUTO_IMMED + CMD_ONLY_STRT)); 3219 (AUTO_IMMED + CMD_ONLY_STRT));
3220 } 3220 }
3221 3221
3222 return (1); 3222 return 1;
3223 } 3223 }
3224 3224
3225 else { 3225 else {
3226 3226
3227 currTar_Info->TarStatus |= (unsigned char)SYNC_SUPPORTED; 3227 currTar_Info->TarStatus |= (unsigned char)SYNC_SUPPORTED;
3228 currTar_Info->TarEEValue &= ~EE_SYNC_MASK; 3228 currTar_Info->TarEEValue &= ~EE_SYNC_MASK;
3229 return (0); 3229 return 0;
3230 } 3230 }
3231} 3231}
3232 3232
@@ -3431,7 +3431,7 @@ static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card)
3431 ~(unsigned char)TAR_WIDE_MASK) | 3431 ~(unsigned char)TAR_WIDE_MASK) |
3432 (unsigned char)WIDE_ENABLED); 3432 (unsigned char)WIDE_ENABLED);
3433 3433
3434 return (1); 3434 return 1;
3435 } 3435 }
3436 3436
3437 else { 3437 else {
@@ -3441,7 +3441,7 @@ static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card)
3441 WIDE_NEGOCIATED); 3441 WIDE_NEGOCIATED);
3442 3442
3443 currTar_Info->TarEEValue &= ~EE_WIDE_SCSI; 3443 currTar_Info->TarEEValue &= ~EE_WIDE_SCSI;
3444 return (0); 3444 return 0;
3445 } 3445 }
3446} 3446}
3447 3447
@@ -5155,11 +5155,11 @@ static unsigned char FPT_busMstrTimeOut(unsigned long p_port)
5155 RD_HARPOON(p_port + hp_int_status); /*Clear command complete */ 5155 RD_HARPOON(p_port + hp_int_status); /*Clear command complete */
5156 5156
5157 if (RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) { 5157 if (RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) {
5158 return (1); 5158 return 1;
5159 } 5159 }
5160 5160
5161 else { 5161 else {
5162 return (0); 5162 return 0;
5163 } 5163 }
5164} 5164}
5165 5165
@@ -5721,10 +5721,10 @@ static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type)
5721 } 5721 }
5722 5722
5723 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_SEL) 5723 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_SEL)
5724 return (0); 5724 return 0;
5725 5725
5726 if (RD_HARPOON(p_port + hp_scsidata_0) != 00) 5726 if (RD_HARPOON(p_port + hp_scsidata_0) != 00)
5727 return (0); 5727 return 0;
5728 5728
5729 WR_HARPOON(p_port + hp_scsisig, 5729 WR_HARPOON(p_port + hp_scsisig,
5730 (RD_HARPOON(p_port + hp_scsisig) | SCSI_BSY)); 5730 (RD_HARPOON(p_port + hp_scsisig) | SCSI_BSY));
@@ -5734,7 +5734,7 @@ static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type)
5734 WR_HARPOON(p_port + hp_scsisig, 5734 WR_HARPOON(p_port + hp_scsisig,
5735 (RD_HARPOON(p_port + hp_scsisig) & 5735 (RD_HARPOON(p_port + hp_scsisig) &
5736 ~SCSI_BSY)); 5736 ~SCSI_BSY));
5737 return (0); 5737 return 0;
5738 } 5738 }
5739 5739
5740 WR_HARPOON(p_port + hp_scsisig, 5740 WR_HARPOON(p_port + hp_scsisig,
@@ -5745,7 +5745,7 @@ static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type)
5745 WR_HARPOON(p_port + hp_scsisig, 5745 WR_HARPOON(p_port + hp_scsisig,
5746 (RD_HARPOON(p_port + hp_scsisig) & 5746 (RD_HARPOON(p_port + hp_scsisig) &
5747 ~(SCSI_BSY | SCSI_SEL))); 5747 ~(SCSI_BSY | SCSI_SEL)));
5748 return (0); 5748 return 0;
5749 } 5749 }
5750 } 5750 }
5751 5751
@@ -5764,7 +5764,7 @@ static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type)
5764 5764
5765 FPT_Wait(p_port, TO_250ms); 5765 FPT_Wait(p_port, TO_250ms);
5766 5766
5767 return (1); 5767 return 1;
5768} 5768}
5769 5769
5770/*--------------------------------------------------------------------- 5770/*---------------------------------------------------------------------
@@ -5956,7 +5956,7 @@ static unsigned char FPT_scxferc(unsigned long p_port, unsigned char p_data)
5956 5956
5957 FPT_scwirod(p_port, BIT(6)); /*Wait for DB6 to be released. */ 5957 FPT_scwirod(p_port, BIT(6)); /*Wait for DB6 to be released. */
5958 5958
5959 return (ret_data); 5959 return ret_data;
5960} 5960}
5961 5961
5962/*--------------------------------------------------------------------- 5962/*---------------------------------------------------------------------
@@ -5994,22 +5994,22 @@ static unsigned char FPT_scsendi(unsigned long p_port,
5994 } 5994 }
5995 5995
5996 if ((ret_data & 0x1C) == 0x10) 5996 if ((ret_data & 0x1C) == 0x10)
5997 return (0x00); /*End of isolation stage, we won! */ 5997 return 0x00; /*End of isolation stage, we won! */
5998 5998
5999 if (ret_data & 0x1C) 5999 if (ret_data & 0x1C)
6000 return (0xFF); 6000 return 0xFF;
6001 6001
6002 if ((defer) && (!(ret_data & 0x1F))) 6002 if ((defer) && (!(ret_data & 0x1F)))
6003 return (0x01); /*End of isolation stage, we lost. */ 6003 return 0x01; /*End of isolation stage, we lost. */
6004 6004
6005 } /*bit loop */ 6005 } /*bit loop */
6006 6006
6007 } /*byte loop */ 6007 } /*byte loop */
6008 6008
6009 if (defer) 6009 if (defer)
6010 return (0x01); /*We lost */ 6010 return 0x01; /*We lost */
6011 else 6011 else
6012 return (0); /*We WON! Yeeessss! */ 6012 return 0; /*We WON! Yeeessss! */
6013} 6013}
6014 6014
6015/*--------------------------------------------------------------------- 6015/*---------------------------------------------------------------------
@@ -6034,7 +6034,7 @@ static unsigned char FPT_sciso(unsigned long p_port,
6034 ret_data = FPT_scxferc(p_port, 0); 6034 ret_data = FPT_scxferc(p_port, 0);
6035 6035
6036 if (ret_data & 0xFC) 6036 if (ret_data & 0xFC)
6037 return (0xFF); 6037 return 0xFF;
6038 6038
6039 else { 6039 else {
6040 6040
@@ -6056,9 +6056,9 @@ static unsigned char FPT_sciso(unsigned long p_port,
6056 } 6056 }
6057*/ 6057*/
6058 if (byte_cnt) 6058 if (byte_cnt)
6059 return (0x00); 6059 return 0x00;
6060 else 6060 else
6061 return (0xFF); 6061 return 0xFF;
6062 } 6062 }
6063 6063
6064 } /*bit loop */ 6064 } /*bit loop */
@@ -6067,7 +6067,7 @@ static unsigned char FPT_sciso(unsigned long p_port,
6067 6067
6068 } /*byte loop */ 6068 } /*byte loop */
6069 6069
6070 return (0); 6070 return 0;
6071} 6071}
6072 6072
6073/*--------------------------------------------------------------------- 6073/*---------------------------------------------------------------------
@@ -6142,10 +6142,10 @@ static unsigned char FPT_scvalq(unsigned char p_quintet)
6142 } 6142 }
6143 6143
6144 if (p_quintet & 0x18) 6144 if (p_quintet & 0x18)
6145 return (0); 6145 return 0;
6146 6146
6147 else 6147 else
6148 return (1); 6148 return 1;
6149} 6149}
6150 6150
6151/*--------------------------------------------------------------------- 6151/*---------------------------------------------------------------------
@@ -6209,7 +6209,7 @@ static unsigned char FPT_scsell(unsigned long p_port, unsigned char targ_id)
6209 (RD_HARPOON(p_port + hp_page_ctrl) & 6209 (RD_HARPOON(p_port + hp_page_ctrl) &
6210 ~G_INT_DISABLE)); 6210 ~G_INT_DISABLE));
6211 6211
6212 return (0); /*No legacy device */ 6212 return 0; /*No legacy device */
6213 } 6213 }
6214 6214
6215 else { 6215 else {
@@ -6228,7 +6228,7 @@ static unsigned char FPT_scsell(unsigned long p_port, unsigned char targ_id)
6228 (RD_HARPOON(p_port + hp_page_ctrl) & 6228 (RD_HARPOON(p_port + hp_page_ctrl) &
6229 ~G_INT_DISABLE)); 6229 ~G_INT_DISABLE));
6230 6230
6231 return (1); /*Found one of them oldies! */ 6231 return 1; /*Found one of them oldies! */
6232 } 6232 }
6233} 6233}
6234 6234
@@ -6342,7 +6342,7 @@ static unsigned char FPT_scmachid(unsigned char p_card,
6342 6342
6343 if (match) { 6343 if (match) {
6344 FPT_scamInfo[i].state = ID_ASSIGNED; 6344 FPT_scamInfo[i].state = ID_ASSIGNED;
6345 return (i); 6345 return i;
6346 } 6346 }
6347 6347
6348 } 6348 }
@@ -6372,7 +6372,7 @@ static unsigned char FPT_scmachid(unsigned char p_card,
6372 if (FPT_BL_Card[p_card].pNvRamInfo == NULL) 6372 if (FPT_BL_Card[p_card].pNvRamInfo == NULL)
6373 FPT_BL_Card[p_card].globalFlags |= 6373 FPT_BL_Card[p_card].globalFlags |=
6374 F_UPDATE_EEPROM; 6374 F_UPDATE_EEPROM;
6375 return (match); 6375 return match;
6376 6376
6377 } 6377 }
6378 6378
@@ -6387,7 +6387,7 @@ static unsigned char FPT_scmachid(unsigned char p_card,
6387 } 6387 }
6388 6388
6389 if (p_id_string[0] & BIT(7)) { 6389 if (p_id_string[0] & BIT(7)) {
6390 return (CLR_PRIORITY); 6390 return CLR_PRIORITY;
6391 } 6391 }
6392 6392
6393 if (p_id_string[0] & BIT(5)) 6393 if (p_id_string[0] & BIT(5))
@@ -6416,7 +6416,7 @@ static unsigned char FPT_scmachid(unsigned char p_card,
6416 if (FPT_BL_Card[p_card].pNvRamInfo == NULL) 6416 if (FPT_BL_Card[p_card].pNvRamInfo == NULL)
6417 FPT_BL_Card[p_card].globalFlags |= 6417 FPT_BL_Card[p_card].globalFlags |=
6418 F_UPDATE_EEPROM; 6418 F_UPDATE_EEPROM;
6419 return (match); 6419 return match;
6420 6420
6421 } 6421 }
6422 6422
@@ -6430,7 +6430,7 @@ static unsigned char FPT_scmachid(unsigned char p_card,
6430 } 6430 }
6431 } 6431 }
6432 6432
6433 return (NO_ID_AVAIL); 6433 return NO_ID_AVAIL;
6434} 6434}
6435 6435
6436/*--------------------------------------------------------------------- 6436/*---------------------------------------------------------------------
@@ -7181,7 +7181,7 @@ static unsigned char FPT_queueFindSccb(struct sccb *p_SCCB,
7181 7181
7182 currTar_Info->TarSelQ_Cnt--; 7182 currTar_Info->TarSelQ_Cnt--;
7183 7183
7184 return (1); 7184 return 1;
7185 } 7185 }
7186 7186
7187 else { 7187 else {
@@ -7189,7 +7189,7 @@ static unsigned char FPT_queueFindSccb(struct sccb *p_SCCB,
7189 } 7189 }
7190 } 7190 }
7191 7191
7192 return (0); 7192 return 0;
7193 7193
7194} 7194}
7195 7195
@@ -7416,14 +7416,14 @@ static unsigned short FPT_utilEERead(unsigned long p_port,
7416 ee_data2 = FPT_utilEEReadOrg(p_port, ee_addr); 7416 ee_data2 = FPT_utilEEReadOrg(p_port, ee_addr);
7417 7417
7418 if (ee_data1 == ee_data2) 7418 if (ee_data1 == ee_data2)
7419 return (ee_data1); 7419 return ee_data1;
7420 7420
7421 ee_data1 = ee_data2; 7421 ee_data1 = ee_data2;
7422 i++; 7422 i++;
7423 7423
7424 } while (i < 4); 7424 } while (i < 4);
7425 7425
7426 return (ee_data1); 7426 return ee_data1;
7427} 7427}
7428 7428
7429/*--------------------------------------------------------------------- 7429/*---------------------------------------------------------------------
@@ -7471,7 +7471,7 @@ static unsigned short FPT_utilEEReadOrg(unsigned long p_port,
7471 WR_HARPOON(p_port + hp_ee_ctrl, (ee_value | SEE_MS)); /*Turn off CS */ 7471 WR_HARPOON(p_port + hp_ee_ctrl, (ee_value | SEE_MS)); /*Turn off CS */
7472 WR_HARPOON(p_port + hp_ee_ctrl, ee_value); /*Turn off Master Select */ 7472 WR_HARPOON(p_port + hp_ee_ctrl, ee_value); /*Turn off Master Select */
7473 7473
7474 return (ee_data); 7474 return ee_data;
7475} 7475}
7476 7476
7477/*--------------------------------------------------------------------- 7477/*---------------------------------------------------------------------
@@ -7559,7 +7559,7 @@ static unsigned short FPT_CalcCrc16(unsigned char buffer[])
7559 ch >>= 1; 7559 ch >>= 1;
7560 } 7560 }
7561 } 7561 }
7562 return (crc); 7562 return crc;
7563} 7563}
7564 7564
7565static unsigned char FPT_CalcLrc(unsigned char buffer[]) 7565static unsigned char FPT_CalcLrc(unsigned char buffer[])
@@ -7569,7 +7569,7 @@ static unsigned char FPT_CalcLrc(unsigned char buffer[])
7569 lrc = 0; 7569 lrc = 0;
7570 for (i = 0; i < ID_STRING_LENGTH; i++) 7570 for (i = 0; i < ID_STRING_LENGTH; i++)
7571 lrc ^= buffer[i]; 7571 lrc ^= buffer[i];
7572 return (lrc); 7572 return lrc;
7573} 7573}
7574 7574
7575/* 7575/*