lkml.org 
[lkml]   [2001]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCHLET] 2.4.15-pre4: advansys.c: gcc warning fix
Date
From
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
--
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;

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

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.035 / U:2.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site