summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-07 00:00:35 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 08:11:18 +0100
commitf2ff12908ee412d1b8ac6b7043d37c58a911d1db (patch)
tree4717d36e6ad7451b204fed274964c6a7ead0f778 /drivers/usb/storage/usb.c
parent39dfaf95d20aa7173182843a8e14cb44253e921a (diff)
downloadbarebox-f2ff12908ee412d1b8ac6b7043d37c58a911d1db.tar.gz
usb: storage: Drop unnecessary assignment
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 7df8a52..335f803 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");