Skip to content

Commit bc985c1

Browse files
Felipe Balbigregkh
authored andcommitted
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>
1 parent 5b06162 commit bc985c1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/usb/storage/ene_ub6250.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,10 +1762,9 @@ static int ms_scsi_write(struct us_data *us, struct scsi_cmnd *srb)
17621762
result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1);
17631763
} else {
17641764
void *buf;
1765-
int offset;
1765+
int offset = 0;
17661766
u16 PhyBlockAddr;
17671767
u8 PageNum;
1768-
u32 result;
17691768
u16 len, oldphy, newphy;
17701769

17711770
buf = kmalloc(blenByte, GFP_KERNEL);

0 commit comments

Comments
 (0)