Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: storage: ene_ub6250: fix compile warnings

Fix the following compile warning:

| drivers/usb/storage/ene_ub6250.c: In function ‘ms_scsi_write’:
| drivers/usb/storage/ene_ub6250.c:1728:6: warning: ‘result’ may \
| be used uninitialized in this function [-Wuninitialized]
| drivers/usb/storage/ene_ub6250.c:1795:77: warning: ‘offset’ may \
| be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Felipe Balbi and committed by
Greg Kroah-Hartman
bc985c10 5b061623

+1 -2
+1 -2
drivers/usb/storage/ene_ub6250.c
··· 1762 1762 result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1); 1763 1763 } else { 1764 1764 void *buf; 1765 - int offset; 1765 + int offset = 0; 1766 1766 u16 PhyBlockAddr; 1767 1767 u8 PageNum; 1768 - u32 result; 1769 1768 u16 len, oldphy, newphy; 1770 1769 1771 1770 buf = kmalloc(blenByte, GFP_KERNEL);