[PATCH][TRIVIAL] advansys compile fixes

From: Rik van Riel
Date: Mon Oct 13 2003 - 10:53:43 EST


- initialise req_cnt variable in advansys_detect()
- DvcAdvWritePCIConfigByte() is a void function

diff -urNp linux-5110/drivers/scsi/advansys.c linux-10010/drivers/scsi/advansys.c
--- linux-5110/drivers/scsi/advansys.c
+++ linux-10010/drivers/scsi/advansys.c
@@ -5551,7 +5551,7 @@ advansys_detect(Scsi_Host_Template *tpnt
}
} else {
ADV_CARR_T *carrp;
- int req_cnt;
+ int req_cnt=0;
adv_req_t *reqp = NULL;
int sg_cnt = 0;

@@ -9258,7 +9258,6 @@ DvcAdvWritePCIConfigByte(
ASC_PCI_ID2FUNC(asc_dvc->cfg->pci_slot_info)),
offset, byte_data);
#else /* CONFIG_PCI */
- return 0;
#endif /* CONFIG_PCI */
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/