Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22602
b: refs/heads/master
c: ce79321
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and James Bottomley committed Mar 12, 2006
1 parent 7359aa4 commit 6ed7683
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c823feeb33161c09e83ee4e68c822d6b9ececbc4
refs/heads/master: ce793215b428ae7650b39d87702efa3d5b26ba28
15 changes: 7 additions & 8 deletions trunk/drivers/scsi/FlashPoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#define FAILURE 0xFFFFFFFFL


typedef unsigned int UINT;
typedef unsigned long ULONG;


Expand Down Expand Up @@ -5205,7 +5204,7 @@ static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard)
static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
{
ULONG count,addr,tmpSGCnt;
UINT sg_index;
unsigned int sg_index;
unsigned char sg_count, i;
ULONG reg_offset;

Expand All @@ -5231,7 +5230,7 @@ static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
WR_HARPOON(p_port+hp_page_ctrl, i);

while ((sg_count < (unsigned char)SG_BUF_CNT) &&
((ULONG)(sg_index * (UINT)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) {
((ULONG)(sg_index * (unsigned int)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) {

tmpSGCnt += *(((ULONG *)pcurrSCCB->DataPointer)+
(sg_index * 2));
Expand Down Expand Up @@ -5403,7 +5402,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS

ULONG timeout;
ULONG remain_cnt;
UINT sg_ptr;
unsigned int sg_ptr;

FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT;

Expand Down Expand Up @@ -5454,9 +5453,9 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS

sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT;

if (sg_ptr > (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) {
if (sg_ptr > (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) {

sg_ptr = (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE);
sg_ptr = (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE);
}

remain_cnt = pCurrSCCB->Sccb_XferCnt;
Expand Down Expand Up @@ -5659,7 +5658,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
static void FPT_hostDataXferRestart(PSCCB currSCCB)
{
ULONG data_count;
UINT sg_index;
unsigned int sg_index;
ULONG *sg_ptr;

if (currSCCB->Sccb_XferState & F_SG_XFER) {
Expand Down Expand Up @@ -7418,7 +7417,7 @@ static unsigned char FPT_queueFindSccb(PSCCB p_SCCB, unsigned char p_card)
static void FPT_utilUpdateResidual(PSCCB p_SCCB)
{
ULONG partial_cnt;
UINT sg_index;
unsigned int sg_index;
ULONG *sg_ptr;

if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) {
Expand Down

0 comments on commit 6ed7683

Please sign in to comment.