summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPedro Barletta Gennari <pedro.pbg@usp.br>2026-04-28 22:29:55 -0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 10:59:35 +0100
commitf326d8f8f00676f07a40a5f3fbd1c89d854b89bd (patch)
treeec7f7404ba9a67210514cef7dafb0350b5a9c8df /tools/perf/scripts/python
parent4bb316664b7b857a1e57280164813f95a7e05a6a (diff)
iio: light: iqs621-als: prefer early error handling over if (!ret)
Handle errors as early as possible by replacing 'if (!ret)' with the more common form 'if (ret)'. This makes the code easier to read. Signed-off-by: Pedro Barletta Gennari <pedro.pbg@usp.br> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions