mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
scsi: storvsc: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
2537577979
commit
15968590f0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user