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>
This commit is contained in:
Jing Xiangfeng 2020-09-18 17:07:47 +08:00 committed by Martin K. Petersen
parent 97d0e04d38
commit 713a846884
1 changed files with 1 additions and 1 deletions

View File

@ -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)