Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68823
b: refs/heads/master
c: ce3a7f1
h: refs/heads/master
i:
  68821: 12780a2
  68819: cb52cc6
  68815: 9c39df9
v: v3
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent 5475e2c commit c2b0294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 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: 9649af39e30d8d2668c35d008e8e14ae138e4d40
refs/heads/master: ce3a7f1202e02324841ef87d7d3f08ff351d07c7
23 changes: 3 additions & 20 deletions trunk/drivers/scsi/advansys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,6 @@ static int AscIsrChipHalted(ASC_DVC_VAR *);
static uchar _AscCopyLramScsiDoneQ(PortAddr, ushort,
ASC_QDONE_INFO *, ASC_DCNT);
static int AscIsrQDone(ASC_DVC_VAR *);
static int AscCompareString(uchar *, uchar *, int);
#ifdef CONFIG_ISA
static ushort AscGetEisaChipCfg(PortAddr);
#endif /* CONFIG_ISA */
Expand Down Expand Up @@ -10998,8 +10997,7 @@ AscAsyncFix(ASC_DVC_VAR *asc_dvc, uchar tid_no, ASC_SCSI_INQUIRY *inq)
if (asc_dvc->bug_fix_cntl & ASC_BUG_FIX_ASYN_USE_SYN) {
if (!(asc_dvc->init_sdtr & tid_bits)) {
if ((dvc_type == TYPE_ROM) &&
(AscCompareString((uchar *)inq->vendor_id,
(uchar *)"HP ", 3) == 0)) {
(strncmp(inq->vendor_id, "HP ", 3) == 0)) {
asc_dvc->pci_fix_asyn_xfer_always |= tid_bits;
}
asc_dvc->pci_fix_asyn_xfer |= tid_bits;
Expand All @@ -11022,10 +11020,8 @@ AscAsyncFix(ASC_DVC_VAR *asc_dvc, uchar tid_no, ASC_SCSI_INQUIRY *inq)
static int AscTagQueuingSafe(ASC_SCSI_INQUIRY *inq)
{
if ((inq->add_len >= 32) &&
(AscCompareString((uchar *)inq->vendor_id,
(uchar *)"QUANTUM XP34301", 15) == 0) &&
(AscCompareString((uchar *)inq->product_rev_level,
(uchar *)"1071", 4) == 0)) {
(strncmp(inq->vendor_id, "QUANTUM XP34301", 15) == 0) &&
(strncmp(inq->product_rev_level, "1071", 4) == 0)) {
return 0;
}
return 1;
Expand Down Expand Up @@ -11076,19 +11072,6 @@ AscInquiryHandling(ASC_DVC_VAR *asc_dvc, uchar tid_no, ASC_SCSI_INQUIRY *inq)
return;
}

static int AscCompareString(uchar *str1, uchar *str2, int len)
{
int i;
int diff;

for (i = 0; i < len; i++) {
diff = (int)(str1[i] - str2[i]);
if (diff != 0)
return (diff);
}
return (0);
}

static uchar AscReadLramByte(PortAddr iop_base, ushort addr)
{
uchar byte_data;
Expand Down

0 comments on commit c2b0294

Please sign in to comment.