* [PATCH 6/6] mptctl : -mm patch: shutup uninitialized variable warnings
@ 2007-09-29 16:22 Eric Moore
0 siblings, 0 replies; only message in thread
From: Eric Moore @ 2007-09-29 16:22 UTC (permalink / raw)
To: linux-scsi, James.Bottomley
This fix's compilier warnings that was reported by Satyam Sharma. Currently this patch is there in -mm.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: Satyam Sharma <satyam@infradead.org>
diff -uarpN b/drivers/message/fusion/mptctl.c a/drivers/message/fusion/mptctl.c
--- b/drivers/message/fusion/mptctl.c 2007-09-17 17:17:50.000000000 -0600
+++ a/drivers/message/fusion/mptctl.c 2007-09-28 17:41:14.000000000 -0600
@@ -1774,7 +1774,10 @@ mptctl_do_mpt_command (struct mpt_ioctl_
ulong timeout;
struct scsi_device *sdev;
+ /* bufIn and bufOut are used for user to kernel space transfers
+ */
bufIn.kptr = bufOut.kptr = NULL;
+ bufIn.len = bufOut.len = 0;
if (((iocnum = mpt_verify_adapter(karg.hdr.iocnum, &ioc)) < 0) ||
(ioc == NULL)) {
@@ -2108,11 +2111,6 @@ mptctl_do_mpt_command (struct mpt_ioctl_
psge = (char *) (((int *) mf) + karg.dataSgeOffset);
flagsLength = 0;
- /* bufIn and bufOut are used for user to kernel space transfers
- */
- bufIn.kptr = bufOut.kptr = NULL;
- bufIn.len = bufOut.len = 0;
-
if (karg.dataOutSize > 0)
sgSize ++;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-29 16:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-29 16:22 [PATCH 6/6] mptctl : -mm patch: shutup uninitialized variable warnings Eric Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox