diff options
author | 2016-02-17 19:02:54 +0530 | |
---|---|---|
committer | 2016-03-01 20:06:49 -0500 | |
commit | a6d24143fca421c836f78538705c8e5b3ef04e3d (patch) | |
tree | dcfed74a1ac7ec1cefd9210c9e541b1f16d3c01c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ncr5380: Call scsi_eh_prep_cmnd() and scsi_eh_restore_cmnd() as and when appropriate (diff) | |
download | wireguard-linux-a6d24143fca421c836f78538705c8e5b3ef04e3d.tar.xz wireguard-linux-a6d24143fca421c836f78538705c8e5b3ef04e3d.zip |
qlogicpti: Return correct error code
The return value of of_ioremap on failure should be -ENODEV and not
-1.
Found using Coccinelle. A simplified version of the semantic patch
used is:
//<smpl>
@@
expression *e;
@@
e = of_ioremap(...);
if (e == NULL) {
...
return
- -1
+ -ENODEV
;
}
//</smpl>
The single call site only checks that the return value is less than 0,
hence no change is required at the call site.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Reviewed-by: Shane Seymour <shane.seymour@hpe.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions