]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3926623eb668d2bcfc65e92dffdfa937e885f758
tree767665f8cbc3b8b7785868e02b8938d103630f17
parent055387e04285ad5eb77b4ab970953f9d06ea4c31
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