diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-05-10 08:33:58 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-05-11 08:36:15 -0500 |
commit | ad2fa42d044b98469449880474a9662fb689f7f9 (patch) | |
tree | d016ba7ce9600cb80168be9c23ee447b491fb071 /drivers/scsi/sr_vendor.c | |
parent | c8611f975403dd20e6503aff8aded5dcb718f75b (diff) | |
download | blackbird-obmc-linux-ad2fa42d044b98469449880474a9662fb689f7f9.tar.gz blackbird-obmc-linux-ad2fa42d044b98469449880474a9662fb689f7f9.zip |
[SCSI] aha152x: fix init suspiciously returned 1, it should follow 0/-E convention
Reported-by: Frank de Jong <frapex@xs4all.nl>
> [1.] One line summary of the problem:
> linux-2.6.25.3, aha152x'->init suspiciously returned 1, it should
> follow 0/-E convention. The module / driver works okay. Unloading the
> module is impossible.
The driver is apparently returning 0 on failure and 1 on success.
That's a bit unfortunate. Fix it by altering to -ENODEV and 0.
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sr_vendor.c')
0 files changed, 0 insertions, 0 deletions