mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
USB: storage: fixed several trailing white spaces issues.
Fixed several trailing white spaces issues found by checkpatch.pl tool in drivers/usb/storage/usb.c Signed-off-by: Jeffrin Jose <ahiliation@yahoo.co.in> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a7edf6823a
commit
a1631062f2
@ -121,7 +121,7 @@ MODULE_PARM_DESC(quirks, "supplemental list of device IDs and their quirks");
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct us_unusual_dev us_unusual_dev_list[] = {
|
static struct us_unusual_dev us_unusual_dev_list[] = {
|
||||||
# include "unusual_devs.h"
|
# include "unusual_devs.h"
|
||||||
{ } /* Terminating entry */
|
{ } /* Terminating entry */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ EXPORT_SYMBOL_GPL(usb_stor_post_reset);
|
|||||||
void fill_inquiry_response(struct us_data *us, unsigned char *data,
|
void fill_inquiry_response(struct us_data *us, unsigned char *data,
|
||||||
unsigned int data_len)
|
unsigned int data_len)
|
||||||
{
|
{
|
||||||
if (data_len<36) /* You lose. */
|
if (data_len < 36) /* You lose. */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
memset(data+8, ' ', 28);
|
memset(data+8, ' ', 28);
|
||||||
@ -271,7 +271,7 @@ void fill_inquiry_response(struct us_data *us, unsigned char *data,
|
|||||||
to this logical unit") and leave vendor and
|
to this logical unit") and leave vendor and
|
||||||
product identification empty. ("If the target
|
product identification empty. ("If the target
|
||||||
does store some of the INQUIRY data on the
|
does store some of the INQUIRY data on the
|
||||||
device, it may return zeros or ASCII spaces
|
device, it may return zeros or ASCII spaces
|
||||||
(20h) in those fields until the data is
|
(20h) in those fields until the data is
|
||||||
available from the device."). */
|
available from the device."). */
|
||||||
} else {
|
} else {
|
||||||
@ -327,7 +327,7 @@ static int usb_stor_control_thread(void * __us)
|
|||||||
|
|
||||||
scsi_unlock(host);
|
scsi_unlock(host);
|
||||||
|
|
||||||
/* reject the command if the direction indicator
|
/* reject the command if the direction indicator
|
||||||
* is UNKNOWN
|
* is UNKNOWN
|
||||||
*/
|
*/
|
||||||
if (us->srb->sc_data_direction == DMA_BIDIRECTIONAL) {
|
if (us->srb->sc_data_direction == DMA_BIDIRECTIONAL) {
|
||||||
@ -338,7 +338,7 @@ static int usb_stor_control_thread(void * __us)
|
|||||||
/* reject if target != 0 or if LUN is higher than
|
/* reject if target != 0 or if LUN is higher than
|
||||||
* the maximum known LUN
|
* the maximum known LUN
|
||||||
*/
|
*/
|
||||||
else if (us->srb->device->id &&
|
else if (us->srb->device->id &&
|
||||||
!(us->fflags & US_FL_SCM_MULT_TARG)) {
|
!(us->fflags & US_FL_SCM_MULT_TARG)) {
|
||||||
US_DEBUGP("Bad target number (%d:%d)\n",
|
US_DEBUGP("Bad target number (%d:%d)\n",
|
||||||
us->srb->device->id, us->srb->device->lun);
|
us->srb->device->id, us->srb->device->lun);
|
||||||
@ -351,7 +351,7 @@ static int usb_stor_control_thread(void * __us)
|
|||||||
us->srb->result = DID_BAD_TARGET << 16;
|
us->srb->result = DID_BAD_TARGET << 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle those devices which need us to fake
|
/* Handle those devices which need us to fake
|
||||||
* their inquiry data */
|
* their inquiry data */
|
||||||
else if ((us->srb->cmnd[0] == INQUIRY) &&
|
else if ((us->srb->cmnd[0] == INQUIRY) &&
|
||||||
(us->fflags & US_FL_FIX_INQUIRY)) {
|
(us->fflags & US_FL_FIX_INQUIRY)) {
|
||||||
@ -376,7 +376,7 @@ static int usb_stor_control_thread(void * __us)
|
|||||||
|
|
||||||
/* indicate that the command is done */
|
/* indicate that the command is done */
|
||||||
if (us->srb->result != DID_ABORT << 16) {
|
if (us->srb->result != DID_ABORT << 16) {
|
||||||
US_DEBUGP("scsi cmd done, result=0x%x\n",
|
US_DEBUGP("scsi cmd done, result=0x%x\n",
|
||||||
us->srb->result);
|
us->srb->result);
|
||||||
us->srb->scsi_done(us->srb);
|
us->srb->scsi_done(us->srb);
|
||||||
} else {
|
} else {
|
||||||
@ -414,7 +414,7 @@ SkipForAbort:
|
|||||||
}
|
}
|
||||||
__set_current_state(TASK_RUNNING);
|
__set_current_state(TASK_RUNNING);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Device probing and disconnecting
|
* Device probing and disconnecting
|
||||||
@ -732,7 +732,7 @@ static int get_pipes(struct us_data *us)
|
|||||||
us->recv_ctrl_pipe = usb_rcvctrlpipe(us->pusb_dev, 0);
|
us->recv_ctrl_pipe = usb_rcvctrlpipe(us->pusb_dev, 0);
|
||||||
us->send_bulk_pipe = usb_sndbulkpipe(us->pusb_dev,
|
us->send_bulk_pipe = usb_sndbulkpipe(us->pusb_dev,
|
||||||
usb_endpoint_num(ep_out));
|
usb_endpoint_num(ep_out));
|
||||||
us->recv_bulk_pipe = usb_rcvbulkpipe(us->pusb_dev,
|
us->recv_bulk_pipe = usb_rcvbulkpipe(us->pusb_dev,
|
||||||
usb_endpoint_num(ep_in));
|
usb_endpoint_num(ep_in));
|
||||||
if (ep_int) {
|
if (ep_int) {
|
||||||
us->recv_intr_pipe = usb_rcvintpipe(us->pusb_dev,
|
us->recv_intr_pipe = usb_rcvintpipe(us->pusb_dev,
|
||||||
|
Loading…
Reference in New Issue
Block a user