mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
[SCSI] fix module unload induced compile warning
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
85e04e371b
commit
504fb37a08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user