diff options
author | Andrew Morton <akpm@osdl.org> | 2006-09-26 01:59:15 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-27 21:26:58 +0200 |
commit | 8350a348e97c2f8aa3e91c025c0e040c90146414 (patch) | |
tree | fde0725a7ba90178334768d693348702366719ee /include | |
parent | [SCSI] Signedness issue in drivers/scsi/ipr.c (diff) | |
download | linux-8350a348e97c2f8aa3e91c025c0e040c90146414.tar.xz linux-8350a348e97c2f8aa3e91c025c0e040c90146414.zip |
[SCSI] scsi: device_reprobe() can fail
device_reprobe() should return an error code. When it does so,
scsi_device_reprobe() should propagate it back.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 895d212864cd..b401c82036be 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -298,9 +298,9 @@ extern int scsi_execute_async(struct scsi_device *sdev, void (*done)(void *, char *, int, int), gfp_t gfp); -static inline void scsi_device_reprobe(struct scsi_device *sdev) +static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) { - device_reprobe(&sdev->sdev_gendev); + return device_reprobe(&sdev->sdev_gendev); } static inline unsigned int sdev_channel(struct scsi_device *sdev) |