Message ID | 20160606073238.1073-3-thierry.reding@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c index 7a74b82e8973..4adcdc2caf27 100644 --- a/drivers/scsi/scsi_proc.c +++ b/drivers/scsi/scsi_proc.c @@ -371,15 +371,10 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf, return err; } -static int always_match(struct device *dev, 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); + device_match_always); put_device(start); return next; }