Commit 15968590 authored by Liao Yuanhong's avatar Liao Yuanhong Committed by Martin K. Petersen
Browse files

scsi: storvsc: Remove redundant ternary operators



Remove redundant ternary operators to clean up the code.

Signed-off-by: default avatarLiao Yuanhong <liaoyuanhong@vivo.com>
Reviewed-by: default avatarMichael Kelley <mhklinux@outlook.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 25375779
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1941,8 +1941,8 @@ static int storvsc_probe(struct hv_device *device,
	int num_present_cpus = num_present_cpus();
	struct Scsi_Host *host;
	struct hv_host_device *host_dev;
	bool dev_is_ide = ((dev_id->driver_data == IDE_GUID) ? true : false);
	bool is_fc = ((dev_id->driver_data == SFC_GUID) ? true : false);
	bool dev_is_ide = dev_id->driver_data == IDE_GUID;
	bool is_fc = dev_id->driver_data == SFC_GUID;
	int target = 0;
	struct storvsc_device *stor_device;
	int max_sub_channels = 0;