Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
	} else {
		void *buf;
		int offset;
		int offset = 0;
		u16 PhyBlockAddr;
		u8 PageNum;
		u32 result;
		u16 len, oldphy, newphy;

		buf = kmalloc(blenByte, GFP_KERNEL);