Skip to content

Commit

Permalink
[SCSI] scsi: device_reprobe() can fail
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and James Bottomley committed Sep 27, 2006
1 parent a2a65a3 commit 8350a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/scsi/scsi_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8350a34

Please sign in to comment.