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)
commit87949eee7e15471a42f06ae534847264a41be647
tree767665f8cbc3b8b7785868e02b8938d103630f17
parente4200f8ee35db820680a3caa25d260ef11fc1462
sd: split sd_init_command

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