mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-14 00:04:00 +08:00
staging: keucr: removed unnecessary variables and comments
blen and bn were only used in commented code fragments. since comments should be informative and not for storing old code, both, commented code and variables, were removed. Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com> Signed-off-by: Johannes Schilling <of82ecuq@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
656e39fedc
commit
9acd5b654d
@ -85,16 +85,9 @@ static void usb_stor_print_cmd(struct us_data *us, struct scsi_cmnd *srb)
|
|||||||
{
|
{
|
||||||
PBYTE Cdb = srb->cmnd;
|
PBYTE Cdb = srb->cmnd;
|
||||||
DWORD cmd = Cdb[0];
|
DWORD cmd = Cdb[0];
|
||||||
DWORD bn = ((Cdb[2] << 24) & 0xff000000) |
|
|
||||||
((Cdb[3] << 16) & 0x00ff0000) |
|
|
||||||
((Cdb[4] << 8) & 0x0000ff00) |
|
|
||||||
((Cdb[5] << 0) & 0x000000ff);
|
|
||||||
WORD blen = ((Cdb[7] << 8) & 0xff00) | ((Cdb[8] << 0) & 0x00ff);
|
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case TEST_UNIT_READY:
|
case TEST_UNIT_READY:
|
||||||
/* dev_dbg(&us->pusb_dev->dev,
|
|
||||||
"scsi cmd %X --- SCSIOP_TEST_UNIT_READY\n", cmd); */
|
|
||||||
break;
|
break;
|
||||||
case INQUIRY:
|
case INQUIRY:
|
||||||
dev_dbg(&us->pusb_dev->dev,
|
dev_dbg(&us->pusb_dev->dev,
|
||||||
@ -113,14 +106,8 @@ static void usb_stor_print_cmd(struct us_data *us, struct scsi_cmnd *srb)
|
|||||||
"scsi cmd %X --- SCSIOP_READ_CAPACITY\n", cmd);
|
"scsi cmd %X --- SCSIOP_READ_CAPACITY\n", cmd);
|
||||||
break;
|
break;
|
||||||
case READ_10:
|
case READ_10:
|
||||||
/* dev_dbg(&us->pusb_dev->dev,
|
|
||||||
"scsi cmd %X --- SCSIOP_READ,bn = %X, blen = %X\n"
|
|
||||||
cmd, bn, blen); */
|
|
||||||
break;
|
break;
|
||||||
case WRITE_10:
|
case WRITE_10:
|
||||||
/* dev_dbg(&us->pusb_dev->dev,
|
|
||||||
"scsi cmd %X --- SCSIOP_WRITE, bn = %X, blen = %X\n",
|
|
||||||
cmd, bn, blen); */
|
|
||||||
break;
|
break;
|
||||||
case ALLOW_MEDIUM_REMOVAL:
|
case ALLOW_MEDIUM_REMOVAL:
|
||||||
dev_dbg(&us->pusb_dev->dev,
|
dev_dbg(&us->pusb_dev->dev,
|
||||||
@ -130,7 +117,6 @@ static void usb_stor_print_cmd(struct us_data *us, struct scsi_cmnd *srb)
|
|||||||
dev_dbg(&us->pusb_dev->dev, "scsi cmd %X --- Other cmd\n", cmd);
|
dev_dbg(&us->pusb_dev->dev, "scsi cmd %X --- Other cmd\n", cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bn = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user