aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-03-19 11:06:19 +0100
committerRob Herring <robh@kernel.org>2023-03-20 14:59:08 -0500
commit13cd9ac670df5e052d3a31ae21bb1787202870dd (patch)
tree4d0254e501c76fcef292c6d86de7d1ef948a7f68 /tools/perf/scripts/python/export-to-postgresql.py
parentof: unittest: Drop call to platform_set_drvdata(..., NULL) (diff)
downloadwireguard-linux-13cd9ac670df5e052d3a31ae21bb1787202870dd.tar.xz
wireguard-linux-13cd9ac670df5e052d3a31ae21bb1787202870dd.zip
of: unittest: Drop if blocks with always false condition
unittest_gpio_remove() is only called after unittest_gpio_probe() completed successfully. In this case driver data was set to a non-NULL value and so platform_get_drvdata() never returns NULL. Also note that the compiler might optimize away this check anyhow as devptr was already dereferenced for the dev_dbg call above. Drop this if block. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230319100620.295849-3-u.kleine-koenig@pengutronix.de Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions