scsi: storvsc: Miscellaneous code cleanups
authorMichael Kelley <mikelley@microsoft.com>
Fri, 4 Jun 2021 17:21:01 +0000 (10:21 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Jun 2021 02:21:43 +0000 (22:21 -0400)
commitd46748590a8538aeaf2349d9539f571708500a54
treeb77ffb5b4b9af1a410d125ba0248103ce1d0c308
parent33c79741deaf09b50d56db4b22879d9557e846df
scsi: storvsc: Miscellaneous code cleanups

As general cleanup and in preparation for subsequent patches:

 - Use min() instead of open coding.

 - Use set_host_byte() instead of open coding access to scsi_status
   field.

 - Collapse nested "if" statements to reduce indentation.

 - Fix other indentation.

 - Remove extra blank lines.

No functional changes.

[mkp: dropped status_byte() which no longer exists]

Link: https://lore.kernel.org/r/1622827263-12516-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c