]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] libata: clean up variable name usage in xlat related functions
authorTejun Heo <htejun@gmail.com>
Sun, 17 Dec 2006 01:45:08 +0000 (10:45 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Dec 2006 19:26:26 +0000 (14:26 -0500)
commit850c438aa4cc2b517832f29304ddedf9ff1ba80e
tree6cdc8ed951a8581f1e0ab0cedba9d5abe89e407f
parentdb3d460146ce6bd9e90eab02454052f30f1c9cf3
[PATCH] libata: clean up variable name usage in xlat related functions

Variable names in xlat functions are quite confusing now.  'scsicmd'
is used for CDB while qc->scsicmd points to struct scsi_cmnd while
'cmd' is used for struct scsi_cmnd.

This patch cleans up variable names in xlat functions such that 'scmd'
is used for struct scsi_cmnd and 'cdb' for CDB.  Also, 'scmd' local
variable is added if qc->scsicmd is used multiple times.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-scsi.c