Skip to contentSkip to conversation

2.4.15-pre4: advansys.c: gcc warning fix

PATCHLET Anton Altaparmakov 1 participant 1 message Nov 12, 2001

lore
Share & tools
lore
#0 lore raw

Linus,

Please consider this one liner getting rid of a gcc "possible unitialized variable" warning in the advansys.c scsi driver. A quick look showed gcc to be wrong on this occasion but having the warning not nice...

Best regards,

Anton

Signature · 17 lines
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/

--- advansys_patchlet.diff ---

diff -urN linux-2.4.15-pre4-vanilla/drivers/scsi/advansys.c linux-2.4.15-pre4-up/drivers/scsi/advansys.c
--- linux-2.4.15-pre4-vanilla/drivers/scsi/advansys.c	Mon Nov 12 20:21:07 2001
+++ linux-2.4.15-pre4-up/drivers/scsi/advansys.c	Mon Nov 12 20:01:26 2001
@@ -5552,7 +5552,7 @@
                 }
             } else {
                 ADV_CARR_T      *carrp;
-                int             req_cnt;
+                int             req_cnt = 0;
                 adv_req_t       *reqp = NULL;
                 int             sg_cnt = 0;