Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31cef6bc authored by Kashyap, Desai's avatar Kashyap, Desai Committed by James Bottomley
Browse files

[SCSI] mpt2sas : Do not reset handle before calling _scsih_remove_device in...


[SCSI] mpt2sas : Do not reset handle before calling _scsih_remove_device in RESCAN task after HBA RESET

Setting handle to zero is not required before _scsih_remove_device.
Driver uses sas_device->handle reference in _scsih_remove_device.

Signed-off-by: default avatarKashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent b620debb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5636,8 +5636,6 @@ _scsih_remove_unresponding_sas_devices(struct MPT2SAS_ADAPTER *ioc)
			    (unsigned long long)
			    sas_device->enclosure_logical_id,
			    sas_device->slot);
		/* invalidate the device handle */
		sas_device->handle = 0;
		_scsih_remove_device(ioc, sas_device);
	}