.. | .. |
---|
310 | 310 | /* Kill all outstanding requests for the device. */ |
---|
311 | 311 | sci_remote_device_terminate_requests(idev); |
---|
312 | 312 | |
---|
313 | | - /* Fall through into the default case... */ |
---|
| 313 | + fallthrough; /* into the default case */ |
---|
314 | 314 | default: |
---|
315 | 315 | clear_bit(IDEV_IO_READY, &idev->flags); |
---|
316 | 316 | break; |
---|
.. | .. |
---|
593 | 593 | |
---|
594 | 594 | break; |
---|
595 | 595 | } |
---|
596 | | - /* Else, fall through and treat as unhandled... */ |
---|
| 596 | + fallthrough; /* and treat as unhandled */ |
---|
597 | 597 | default: |
---|
598 | 598 | dev_dbg(scirdev_to_dev(idev), |
---|
599 | 599 | "%s: device: %p event code: %x: %s\n", |
---|
.. | .. |
---|
1087 | 1087 | |
---|
1088 | 1088 | if (dev->dev_type == SAS_SATA_DEV || (dev->tproto & SAS_PROTOCOL_SATA)) { |
---|
1089 | 1089 | sci_change_state(&idev->sm, SCI_STP_DEV_IDLE); |
---|
1090 | | - } else if (dev_is_expander(dev)) { |
---|
| 1090 | + } else if (dev_is_expander(dev->dev_type)) { |
---|
1091 | 1091 | sci_change_state(&idev->sm, SCI_SMP_DEV_IDLE); |
---|
1092 | 1092 | } else |
---|
1093 | 1093 | isci_remote_device_ready(ihost, idev); |
---|
.. | .. |
---|
1478 | 1478 | struct domain_device *dev = idev->domain_dev; |
---|
1479 | 1479 | enum sci_status status; |
---|
1480 | 1480 | |
---|
1481 | | - if (dev->parent && dev_is_expander(dev->parent)) |
---|
| 1481 | + if (dev->parent && dev_is_expander(dev->parent->dev_type)) |
---|
1482 | 1482 | status = sci_remote_device_ea_construct(iport, idev); |
---|
1483 | 1483 | else |
---|
1484 | 1484 | status = sci_remote_device_da_construct(iport, idev); |
---|
.. | .. |
---|
1504 | 1504 | * This function builds the isci_remote_device when a libsas dev_found message |
---|
1505 | 1505 | * is received. |
---|
1506 | 1506 | * @isci_host: This parameter specifies the isci host object. |
---|
1507 | | - * @port: This parameter specifies the isci_port conected to this device. |
---|
| 1507 | + * @port: This parameter specifies the isci_port connected to this device. |
---|
1508 | 1508 | * |
---|
1509 | 1509 | * pointer to new isci_remote_device. |
---|
1510 | 1510 | */ |
---|