pm8001: honor return value
authorTomas Henzl <thenzl@redhat.com>
Wed, 9 Jul 2014 11:50:49 +0000 (17:20 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:04 +0000 (17:17 -0400)
commit5533abca06e07121697ed1d30863ce03e7c518e5
treedbd493cbf4a526f5aeb1472e5cac2475763fe598
parentef300544723b3be25c877e520b23831eaf7830e8
pm8001: honor return value

The driver ignores the return value in a lot of places, fix
it at least somewhere (and release the resources in such cases),
to avoid that bad things happen.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/pm8001/pm8001_hwi.c
drivers/scsi/pm8001/pm80xx_hwi.c