mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
USB: drivers/usb/storage/dpcm.c whitespace cleanup
Following trivial patch converts smarttabs/whitespaces into real tabs. Signed-off-by: S.Caglar Onur <caglar@pardus.org.tr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e294531dc9
commit
d20da3c39b
1 changed files with 28 additions and 28 deletions
|
@ -46,43 +46,43 @@
|
||||||
*/
|
*/
|
||||||
int dpcm_transport(struct scsi_cmnd *srb, struct us_data *us)
|
int dpcm_transport(struct scsi_cmnd *srb, struct us_data *us)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if(srb == NULL)
|
if (srb == NULL)
|
||||||
return USB_STOR_TRANSPORT_ERROR;
|
return USB_STOR_TRANSPORT_ERROR;
|
||||||
|
|
||||||
US_DEBUGP("dpcm_transport: LUN=%d\n", srb->device->lun);
|
US_DEBUGP("dpcm_transport: LUN=%d\n", srb->device->lun);
|
||||||
|
|
||||||
switch(srb->device->lun) {
|
switch (srb->device->lun) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LUN 0 corresponds to the CompactFlash card reader.
|
* LUN 0 corresponds to the CompactFlash card reader.
|
||||||
*/
|
*/
|
||||||
ret = usb_stor_CB_transport(srb, us);
|
ret = usb_stor_CB_transport(srb, us);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef CONFIG_USB_STORAGE_SDDR09
|
#ifdef CONFIG_USB_STORAGE_SDDR09
|
||||||
case 1:
|
case 1:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LUN 1 corresponds to the SmartMedia card reader.
|
* LUN 1 corresponds to the SmartMedia card reader.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the LUN to 0 (just in case).
|
* Set the LUN to 0 (just in case).
|
||||||
*/
|
*/
|
||||||
srb->device->lun = 0; us->srb->device->lun = 0;
|
srb->device->lun = 0; us->srb->device->lun = 0;
|
||||||
ret = sddr09_transport(srb, us);
|
ret = sddr09_transport(srb, us);
|
||||||
srb->device->lun = 1; us->srb->device->lun = 1;
|
srb->device->lun = 1; us->srb->device->lun = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->device->lun);
|
US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->device->lun);
|
||||||
ret = USB_STOR_TRANSPORT_ERROR;
|
ret = USB_STOR_TRANSPORT_ERROR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue