@@ -1637,9 +1637,8 @@ static void hpsa_figure_phys_disk_ptrs(s
for (j = 0; j < ndevices; j++) {
if (dev[j] == NULL)
continue;
- if (dev[j]->devtype != TYPE_DISK)
- continue;
- if (dev[j]->devtype != TYPE_ZBC)
+ if ((dev[j]->devtype != TYPE_DISK) &&
+ (dev[j]->devtype != TYPE_ZBC))
continue;
if (is_logical_device(dev[j]))
continue;
@@ -1684,9 +1683,8 @@ static void hpsa_update_log_drive_phys_d
for (i = 0; i < ndevices; i++) {
if (dev[i] == NULL)
continue;
- if (dev[i]->devtype != TYPE_DISK)
- continue;
- if (dev[i]->devtype != TYPE_ZBC)
+ if ((dev[i]->devtype != TYPE_DISK) &&
+ (dev[i]->devtype != TYPE_ZBC))
continue;
if (!is_logical_device(dev[i]))
continue;