summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorNinad Naik <ninadnaik07@gmail.com>2026-07-15 00:52:28 +0530
committerMark Brown <broonie@kernel.org>2026-07-16 13:56:52 +0100
commit25706f1ab9fba4b10169f557bf5fcaf41db0bc65 (patch)
tree84af5173d73140706d2ac52cc0b1eb18397789a1 /tools/perf/scripts/python/net_dropmonitor.py
parent153bc959ce0f91b4446fb6fb805b8c1d2ca20c75 (diff)
regulator: mcp16502: Convert to dev_err_probe() in mcp16502_probe()
The mcp16502_probe() currently uses dev_err() for logging errors. However, functions like devm_regmap_init_i2c, devm_gpiod_get_optional and devm_regulator_register can return -EPROBE_DEFER. Using dev_err() in these situations can cause unnecessary error spam in dmesg. As a result, convert to dev_err_probe(). It also simplifies the print and return operations into single statement. The 'ret' variable is no longer required and has been removed. Originally detected by Coccinelle with this warning "Consider using %pe to print PTR_ERR()" Compile-tested only. Signed-off-by: Ninad Naik <ninadnaik07@gmail.com> Link: https://patch.msgid.link/20260714192228.1639768-1-ninadnaik07@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions