scsi: smartpqi: remove the smp_handler stub
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Aug 2017 15:37:40 +0000 (17:37 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Aug 2017 01:51:44 +0000 (21:51 -0400)
The SAS transport class will do the right thing and not register the BSG
node if now smp_handler method is present.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_sas_transport.c

index 0d89d3728b435f392c893ee1925e47e40cfda582..b209a35e482ef87348a5ea6a7554443742077655 100644 (file)
@@ -329,14 +329,6 @@ static int pqi_sas_phy_speed(struct sas_phy *phy,
        return -EINVAL;
 }
 
-/* SMP = Serial Management Protocol */
-
-static int pqi_sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
-       struct request *req)
-{
-       return -EINVAL;
-}
-
 struct sas_function_template pqi_sas_transport_functions = {
        .get_linkerrors = pqi_sas_get_linkerrors,
        .get_enclosure_identifier = pqi_sas_get_enclosure_identifier,
@@ -346,5 +338,4 @@ struct sas_function_template pqi_sas_transport_functions = {
        .phy_setup = pqi_sas_phy_setup,
        .phy_release = pqi_sas_phy_release,
        .set_phy_speed = pqi_sas_phy_speed,
-       .smp_handler = pqi_sas_smp_handler,
 };