mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
scsi: core: Fix formatting errors in scsi_lib.c
Delete trailing whitespace, multiple blank lines, and make switch/case be at the same indentation. Link: https://lore.kernel.org/r/20200619154117.10262-3-huobean@gmail.com Signed-off-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
71df6fb976
commit
4c7b4d6327
1 changed files with 21 additions and 22 deletions
|
@ -2025,7 +2025,6 @@ scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage,
|
|||
real_buffer[2] = data->device_specific;
|
||||
real_buffer[3] = data->block_descriptor_length;
|
||||
|
||||
|
||||
cmd[0] = MODE_SELECT;
|
||||
cmd[4] = len;
|
||||
}
|
||||
|
@ -2119,7 +2118,7 @@ scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
|
|||
}
|
||||
}
|
||||
|
||||
if(scsi_status_is_good(result)) {
|
||||
if (scsi_status_is_good(result)) {
|
||||
if (unlikely(buffer[0] == 0x86 && buffer[1] == 0x0b &&
|
||||
(modepage == 6 || modepage == 8))) {
|
||||
/* Initio breakage? */
|
||||
|
@ -2129,7 +2128,7 @@ scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
|
|||
data->device_specific = 0;
|
||||
data->longlba = 0;
|
||||
data->block_descriptor_length = 0;
|
||||
} else if(use_10_for_ms) {
|
||||
} else if (use_10_for_ms) {
|
||||
data->length = buffer[0]*256 + buffer[1] + 2;
|
||||
data->medium_type = buffer[2];
|
||||
data->device_specific = buffer[3];
|
||||
|
|
Loading…
Add table
Reference in a new issue