projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d0e04
)
scsi: oak: Remove redundant initialization of variable ret
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Fri, 18 Sep 2020 09:07:47 +0000
(17:07 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 23 Sep 2020 00:23:30 +0000
(20:23 -0400)
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>
drivers/scsi/arm/oak.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/arm/oak.c
b/drivers/scsi/arm/oak.c
index 7c9d361e91a9809264705fab453a78b124c8ffbe..78f33d57c3e8d9849a1828f3bb3fe0ee51361370 100644
(file)
--- 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)