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

Commit 504fb37a authored by Ingo Molnar's avatar Ingo Molnar Committed by James Bottomley
Browse files

[SCSI] fix module unload induced compile warning

parent 85e04e37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -871,9 +871,9 @@ EXPORT_SYMBOL(scsi_device_get);
 */
void scsi_device_put(struct scsi_device *sdev)
{
#ifdef CONFIG_MODULE_UNLOAD
	struct module *module = sdev->host->hostt->module;

#ifdef CONFIG_MODULE_UNLOAD
	/* The module refcount will be zero if scsi_device_get()
	 * was called from a module removal routine */
	if (module && module_refcount(module) != 0)