summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas
diff options
context:
space:
mode:
authorJohn Garry <john.g.garry@oracle.com>2023-08-15 11:51:48 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2023-08-21 17:50:57 -0400
commitc46a91709335ef8fccec082201e758531aee1c8f (patch)
tree6b932c41c1c26f46417d4ac95a1ace0a1014a82f /drivers/scsi/mvsas
parentb1bc4973177035bce5a5e0483abbbe12e6f9005b (diff)
downloadlinux-c46a91709335ef8fccec082201e758531aee1c8f.tar.gz
linux-c46a91709335ef8fccec082201e758531aee1c8f.tar.bz2
linux-c46a91709335ef8fccec082201e758531aee1c8f.zip
scsi: libsas: Delete enum sas_class
enum sas_class prob would have been useful if function sas_show_class() was ever implemented, which it wasn't. enum sas_class is used as asd_sas_port.class and asd_sas_phy.class, which are only ever set, so delete these members and the enum. Signed-off-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20230815115156.343535-3-john.g.garry@oracle.com Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mvsas')
-rw-r--r--drivers/scsi/mvsas/mv_init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index aea70ec308f9..408113bf506d 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -84,7 +84,6 @@ static void mvs_phy_init(struct mvs_info *mvi, int phy_id)
phy->port = NULL;
timer_setup(&phy->timer, NULL, 0);
sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0;
- sas_phy->class = SAS;
sas_phy->iproto = SAS_PROTOCOL_ALL;
sas_phy->tproto = 0;
sas_phy->type = PHY_TYPE_PHYSICAL;