summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-18 12:07:47 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-23 03:23:30 +0300
commit713a846884ce02e402e184c11473f6a19dce8665 (patch)
tree9cdec77b7db2d3d7a81e52fdbaf9cc6770f0fd2d /drivers
parent97d0e04d38b4e3b4510e251144c9e47873a89321 (diff)
downloadlinux-713a846884ce02e402e184c11473f6a19dce8665.tar.xz
scsi: oak: Remove redundant initialization of variable ret
No point in initializing ret with -ENOMEM. Link: https://lore.kernel.org/r/20200918090747.44645-1-jingxiangfeng@huawei.com Acked-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/arm/oak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c
index 7c9d361e91a9..78f33d57c3e8 100644
--- a/drivers/scsi/arm/oak.c
+++ b/drivers/scsi/arm/oak.c
@@ -120,7 +120,7 @@ static struct scsi_host_template oakscsi_template = {
static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
{
struct Scsi_Host *host;
- int ret = -ENOMEM;
+ int ret;
ret = ecard_request_resources(ec);
if (ret)