mptctl : -mm patch: shutup uninitialized variable warnings
Subsystems (2)
PATCH 6/6 mptctl : -mm patch: shutup uninitialized variable warnings
This fix's compilier warnings that was reported by Satyam Sharma. Currently this patch is there in -mm.
Signed-off-by Eric Moore <[email protected]>
Signed-off-by Satyam Sharma <[email protected]>
drivers/message/fusion/mptctl.c +3 -5
@@ -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 ++;