summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-04-20 11:44:51 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-05-10 12:54:07 +0300
commit4d888eceb725216305eee595ff5d068112cf7c15 (patch)
treeaa158eba9c175277d612c08e7650f1639c137e6b /tools/perf/scripts/python/exported-sql-viewer.py
parente101bd30456111d46bf4c54df122314ce96e4180 (diff)
downloadlinux-4d888eceb725216305eee595ff5d068112cf7c15.tar.xz
mtd: rawnand: silence static checker warning in nand_setup_interface()
Smatch complains that the error code is not set on this error path: drivers/mtd/nand/raw/nand_base.c:842 nand_setup_interface() warn: missing error code 'ret' But actually returning success is intentional because the NAND chip will still work in mode 0. This patch adds a "ret = 0;" assignment to make the intent more clear and to silence the static checker warning. It doesn't affect the compiled code because GCC optimises the assignment away. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/YH6Ugwz3gcga+q8X@mwanda
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions