Skip to contentSkip to conversation

Staging: hv: Fix checkpatch warnings

PATCH New K. Y. Srinivasan 1 participant 3 messages Oct 15, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Staging: hv: Fix checkpatch warnings

Fix checkpatch warnings in the mouse and storage drivers.

Regards,

K. Y

#1 lore raw

PATCH 1/2 Staging: hv: mousevsc: Fix a checkpatch warning

Fix a checkpatch warning.

---
 drivers/staging/hv/hv_mouse.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/staging/hv/hv_mouse.c +0 -1
index c354ade..ccd39c7 100644
@@ -597,4 +597,3 @@ MODULE_LICENSE("GPL");
 MODULE_VERSION(HV_DRV_VERSION);
 module_init(mousevsc_init);
 module_exit(mousevsc_exit);
-
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 2/2 Staging: hv: storvsc: Fix checkpatch warnings

Fix checkpatch warnings.

---
 drivers/staging/hv/storvsc_drv.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
drivers/staging/hv/storvsc_drv.c +10 -9
index 1f9d23e..ae8c33e 100644
@@ -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;
 }
Signature · 1 line
1.7.4.1