Signed-off-by: Andrey Smirnov <andrew.smir...@gmail.com> --- drivers/usb/storage/usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 7df8a52b6..335f8033b 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -285,9 +285,7 @@ static int usb_stor_init_blkdev(struct us_blk_dev *pblk_dev) struct us_data *us = pblk_dev->us; struct device_d *dev = &us->pusb_dev->dev; u32 last_lba = 0, block_length = 0; - int result = 0; - - pblk_dev->blk.num_blocks = 0; + int result; /* get device info */ dev_dbg(dev, "Reading device info\n"); -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox