Skip to content

Commit 1596859

Browse files
Liao Yuanhongmartinkpetersen
authored andcommitted
scsi: storvsc: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 2537577 commit 1596859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/storvsc_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,8 +1941,8 @@ static int storvsc_probe(struct hv_device *device,
19411941
int num_present_cpus = num_present_cpus();
19421942
struct Scsi_Host *host;
19431943
struct hv_host_device *host_dev;
1944-
bool dev_is_ide = ((dev_id->driver_data == IDE_GUID) ? true : false);
1945-
bool is_fc = ((dev_id->driver_data == SFC_GUID) ? true : false);
1944+
bool dev_is_ide = dev_id->driver_data == IDE_GUID;
1945+
bool is_fc = dev_id->driver_data == SFC_GUID;
19461946
int target = 0;
19471947
struct storvsc_device *stor_device;
19481948
int max_sub_channels = 0;

0 commit comments

Comments
 (0)