summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHongyu Xie <xiehongyu1@kylinos.cn>2024-12-31 09:36:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-03 11:13:52 +0100
commitdedab674428f8a99468a4864c067128ba9ea83a6 (patch)
tree149f7788287445de672c0f413a82a4ec01129611 /tools/perf/scripts/python/export-to-postgresql.py
parentf097a36ef88d693edcf4962ff594e3012c6e0277 (diff)
usb: cdns3: remove redundant if branch
cdns->role_sw->dev->driver_data gets set in routines showing below, cdns_init sw_desc.driver_data = cdns; cdns->role_sw = usb_role_switch_register(dev, &sw_desc); dev_set_drvdata(&sw->dev, desc->driver_data); In cdns_resume, cdns->role = cdns_role_get(cdns->role_sw); //line redundant struct cdns *cdns = usb_role_switch_get_drvdata(sw); dev_get_drvdata(&sw->dev) return dev->driver_data return cdns->role; "line redundant" equals to, cdns->role = cdns->role; So fix this if branch. Signed-off-by: Hongyu Xie <xiehongyu1@kylinos.cn> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://lore.kernel.org/r/20241231013641.23908-1-xiehongyu1@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions