summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-07 00:00:22 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 08:11:18 +0100
commit606503e72e2a94b5ea01741e4882c35e6d2572de (patch)
tree827e08f9db31126704ed259d97a8eab572399e69 /drivers
parentd914aa1892aa29a1c1fc5e0358456bfa9b7a80b3 (diff)
downloadbarebox-606503e72e2a94b5ea01741e4882c35e6d2572de.tar.gz
usb: storage: Remove unused variables
Drop a number of variables no longer used in the code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/storage/usb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 6414204..69de9eb 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -212,7 +212,6 @@ static int usb_stor_blk_io(int io_op, struct block_device *disk_dev,
struct us_blk_dev *pblk_dev = to_usb_mass_storage(disk_dev);
struct us_data *us = pblk_dev->us;
struct device_d *dev = &us->pusb_dev->dev;
- ccb us_ccb;
unsigned sectors_done;
if (sector_count == 0)
@@ -232,7 +231,6 @@ static int usb_stor_blk_io(int io_op, struct block_device *disk_dev,
return -EINVAL;
}
- us_ccb.lun = pblk_dev->lun;
usb_disable_asynch(1);
/* ensure unit ready */
@@ -309,8 +307,6 @@ static struct block_device_ops usb_mass_storage_ops = {
* Block device routines
***********************************************************************/
-static unsigned char us_io_buf[512];
-
static int usb_limit_blk_cnt(unsigned cnt)
{
if (cnt > 0x7fffffff) {
@@ -326,13 +322,9 @@ 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;
- ccb us_ccb;
u32 last_lba = 0, block_length = 0;
int result = 0;
- us_ccb.pdata = us_io_buf;
- us_ccb.lun = pblk_dev->lun;
-
pblk_dev->blk.num_blocks = 0;
usb_disable_asynch(1);