/* Common used function. Transfer a complete command via usb_stor_bulk_transfer_sglist() above. Set cmnd resid  */
int usb_stor_bulk_srb(struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb)
/* Common used function. Transfer a complete command via usb_stor_bulk_transfer_sglist() above. Set cmnd resid  */
int usb_stor_bulk_srb(struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb)
{
	unsigned int partial;
	int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb),
				      scsi_sg_count(srb), scsi_bufflen(srb),
				      &partial);
	scsi_set_resid(srb, scsi_bufflen(srb) - partial);
	return result;
}