summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-25 11:58:38 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-31 11:53:37 +0300
commit052a7a5374bc1e41dd1588fcb861ec3d810fd160 (patch)
treeb1f05b7dbffdbb20b5e0b5c55abc3a70a35e18fa /scripts/gdb/linux/utils.py
parent88f9f3e89a8ad1594c4d9c599bdf9c904e3976fe (diff)
downloadlinux-052a7a5374bc1e41dd1588fcb861ec3d810fd160.tar.xz
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions