RE: [PATCH -mm] mpt fusion: Shut up uninitialized variable warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday, September 02, 2007 2:20 PM,  Satyam Sharma wrote:
> 
> drivers/message/fusion/mptctl.c: In function 'mptctl_mpt_command':
> drivers/message/fusion/mptctl.c:1764: warning: 'bufIn.len' 
> may be used uninitialized in this function
> drivers/message/fusion/mptctl.c:1765: warning: 'bufOut.len' 
> may be used uninitialized in this function
> 
> come because gcc gets confused by some "goto" statements in 
> above function.
> The warnings have been verified to be bogus, however, the 
> function does
> initialize these later (after the offending goto's) in the 
> function anyway.
> So let's move those initializations to top of function, 
> thereby also shutting
> up these warnings.
> 
> Signed-off-by: Satyam Sharma <satyam@xxxxxxxxxxxxx>
> 


ACK, this patch is fine.   However the patch needs posting to lsml.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux