提交 41098f8f 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: storvsc: Fix checkpatch warnings

Fix checkpatch warnings.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 1f469023
......@@ -522,8 +522,9 @@ static void storvsc_on_io_completion(struct hv_device *device,
if (vstor_packet->vm_srb.srb_status & 0x80) {
/* autosense data available */
dev_warn(&device->device,
"storvsc pkt %p autosense data valid - len %d\n",
request, vstor_packet->vm_srb.sense_info_length);
"stor pkt %p autosense data valid - len %d\n",
request,
vstor_packet->vm_srb.sense_info_length);
memcpy(request->sense_buffer,
vstor_packet->vm_srb.sense_data,
......@@ -1128,13 +1129,13 @@ static bool storvsc_check_scsi_cmd(struct scsi_cmnd *scmnd)
u8 scsi_op = scmnd->cmnd[0];
switch (scsi_op) {
/* smartd sends this command, which will offline the device */
case SET_WINDOW:
scmnd->result = DID_ERROR << 16;
allowed = false;
break;
default:
break;
/* smartd sends this command, which will offline the device */
case SET_WINDOW:
scmnd->result = DID_ERROR << 16;
allowed = false;
break;
default:
break;
}
return allowed;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册