All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][TRIVIAL] advansys compile fixes
@ 2003-10-13 15:52 Rik van Riel
  2003-10-13 16:09 ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Rik van Riel @ 2003-10-13 15:52 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Kernel Mailing List

- 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 */
 }


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-13 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-13 15:52 [PATCH][TRIVIAL] advansys compile fixes Rik van Riel
2003-10-13 16:09 ` Dave Jones
2003-10-13 16:15   ` Rik van Riel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.