sd: split sd_init_command
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 10:40:18 +0000 (12:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:16:29 +0000 (22:16 +0200)
Factor out a function to initialize regular read/write commands and leave
sd_init_command as a simple dispatcher to the different prepare routines.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/sd.c

Simple merge