Skip to content

Commit ce79321

Browse files
Alexey DobriyanJames Bottomley
authored andcommitted
[SCSI] drivers/scsi/FlashPoint.c: remove UINT
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>
1 parent c823fee commit ce79321

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎drivers/scsi/FlashPoint.c‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#define FAILURE 0xFFFFFFFFL
4141

4242

43-
typedef unsigned int UINT;
4443
typedef unsigned long ULONG;
4544

4645

@@ -5205,7 +5204,7 @@ static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard)
52055204
static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
52065205
{
52075206
ULONG count,addr,tmpSGCnt;
5208-
UINT sg_index;
5207+
unsigned int sg_index;
52095208
unsigned char sg_count, i;
52105209
ULONG reg_offset;
52115210

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

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

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

54045403
ULONG timeout;
54055404
ULONG remain_cnt;
5406-
UINT sg_ptr;
5405+
unsigned int sg_ptr;
54075406

54085407
FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT;
54095408

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

54555454
sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT;
54565455

5457-
if (sg_ptr > (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) {
5456+
if (sg_ptr > (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) {
54585457

5459-
sg_ptr = (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE);
5458+
sg_ptr = (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE);
54605459
}
54615460

54625461
remain_cnt = pCurrSCCB->Sccb_XferCnt;
@@ -5659,7 +5658,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
56595658
static void FPT_hostDataXferRestart(PSCCB currSCCB)
56605659
{
56615660
ULONG data_count;
5662-
UINT sg_index;
5661+
unsigned int sg_index;
56635662
ULONG *sg_ptr;
56645663

56655664
if (currSCCB->Sccb_XferState & F_SG_XFER) {
@@ -7418,7 +7417,7 @@ static unsigned char FPT_queueFindSccb(PSCCB p_SCCB, unsigned char p_card)
74187417
static void FPT_utilUpdateResidual(PSCCB p_SCCB)
74197418
{
74207419
ULONG partial_cnt;
7421-
UINT sg_index;
7420+
unsigned int sg_index;
74227421
ULONG *sg_ptr;
74237422

74247423
if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) {

0 commit comments

Comments
 (0)