diff options
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
| -rw-r--r-- | drivers/scsi/scsi_proc.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c index c074631086a4..5b313226f11c 100644 --- a/drivers/scsi/scsi_proc.c +++ b/drivers/scsi/scsi_proc.c @@ -372,15 +372,10 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf,  	return err;  } -static int always_match(struct device *dev, const void *data) -{ -	return 1; -} -  static inline struct device *next_scsi_device(struct device *start)  { -	struct device *next = bus_find_device(&scsi_bus_type, start, NULL, -					      always_match); +	struct device *next = bus_find_next_device(&scsi_bus_type, start); +  	put_device(start);  	return next;  }  |