[SCSI] libosd: Fix unchecked err return found by smatch
authorBoaz Harrosh <bharrosh@panasas.com>
Fri, 19 Feb 2010 19:46:24 +0000 (11:46 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 3 Mar 2010 15:42:21 +0000 (21:12 +0530)
commit98e1e0f07c3f1820b8ac424569ee9e9916d3665b
tree70ccee35002cdc3093f8a2892f29df19ab93330a
parentbb2d3de1885cd69a5fc92af99c4e0c05eb5fc122
[SCSI] libosd: Fix unchecked err return found by smatch

Doing CHECK="smatch --two-passes gives:
drivers/scsi/osd/osd_initiator.c +1435 osd_finalize_request warning: assignment to 'ret' was never used

Which is an unchecked possible allocation failure, Fixed.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/osd/osd_initiator.c