summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-12-30 15:44:31 +0300
committerCorey Minyard <minyard@acm.org>2023-04-12 19:13:26 +0300
commitd08076678ce72140a40553d226f90d189fbe06d1 (patch)
tree726936820c8cf01ea8229131c44197b8f176338f /tools/perf/scripts/python/export-to-sqlite.py
parent6d2555cde2918409b0331560e66f84a0ad4849c6 (diff)
downloadlinux-d08076678ce72140a40553d226f90d189fbe06d1.tar.xz
ipmi:ssif: Drop if blocks with always false condition
For both variants (platform and i2c driver) after a successful bind (i.e. .probe completed without error) driver data is set to a non-NULL value. So the return value of i2c_get_clientdata and dev_get_drvdata respectively are not NULL and so the if blocks are never executed. (And if you fear they might, they shouldn't return silently and yield a resource leak.) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Message-Id: <20221230124431.202474-1-u.kleine-koenig@pengutronix.de> Signed-off-by: Corey Minyard <minyard@acm.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions