diff options
author | 2020-05-25 10:58:38 +0200 | |
---|---|---|
committer | 2020-05-31 10:53:37 +0200 | |
commit | 052a7a5374bc1e41dd1588fcb861ec3d810fd160 (patch) | |
tree | b1f05b7dbffdbb20b5e0b5c55abc3a70a35e18fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: rawnand: nandsim: Use a consistent ns_ prefix for all functions (diff) | |
download | linux-dev-052a7a5374bc1e41dd1588fcb861ec3d810fd160.tar.xz linux-dev-052a7a5374bc1e41dd1588fcb861ec3d810fd160.zip |
mtd: rawnand: nandsim: Clean error handling
Many function calls are done this way:
if ((retval = func()) != 0)
return retval;
while we expect in the kernel function calls like:
retval = func();
if (retval)
return retval;
Apply this change where possible and also use "ret" instead of
"retval" in ns_init_module for consistency, as it is only used in this
function.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-5-miquel.raynal@bootlin.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions