Commit bc985c10 authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5b061623
...@@ -1762,10 +1762,9 @@ static int ms_scsi_write(struct us_data *us, struct scsi_cmnd *srb) ...@@ -1762,10 +1762,9 @@ static int ms_scsi_write(struct us_data *us, struct scsi_cmnd *srb)
result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1); result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1);
} else { } else {
void *buf; void *buf;
int offset; int offset = 0;
u16 PhyBlockAddr; u16 PhyBlockAddr;
u8 PageNum; u8 PageNum;
u32 result;
u16 len, oldphy, newphy; u16 len, oldphy, newphy;
buf = kmalloc(blenByte, GFP_KERNEL); buf = kmalloc(blenByte, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment