diff options
| author | Wambui Karuga <[email protected]> | 2019-10-09 20:07:03 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-10 10:44:50 +0200 |
| commit | c0981afd8cd6e7176b4b9fe2186087695463ebde (patch) | |
| tree | e1e279a1b2f620a28c8200fc10aba0d9787cbfb2 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | d49d1c76b96ebf39539e93d5ab7943a01ef70e4f (diff) | |
staging: kpc2000: Remove unnecessary return variable
Remove unnecessary variable `val` in kp_spi_read_reg() that only holds
the return value from readq().
Issue found by coccinelle using the script:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Wambui Karuga <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Link: https://lore.kernel.org/r/20191009170703.GA2869@wambui
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions