]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: storvsc: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Tue, 2 Sep 2025 13:23:46 +0000 (21:23 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Sep 2025 01:44:38 +0000 (21:44 -0400)
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>
drivers/scsi/storvsc_drv.c

index d9e59204a9c369dc3f230e73131fc3291c970624..7449743930d2ed27c7e9bf301d221fbf978b9dcc 100644 (file)
@@ -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;