diff options
author | Prashant Malani <pmalani@chromium.org> | 2021-03-19 04:51:03 +0300 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2021-03-30 19:25:22 +0300 |
commit | 639ff208cb37c5a3f0198e62d04962b677d25c9c (patch) | |
tree | 5a1f059a6d047635e343e8856ef518a2f597a74d /tools/perf/scripts/python/mem-phys-addr.py | |
parent | dbc334fb411f2e87ca0e812dc7ba13464aa89504 (diff) | |
download | linux-639ff208cb37c5a3f0198e62d04962b677d25c9c.tar.xz |
platform/chrome: cros_ec_typec: Check for device within remove function
In a couple of call sites, we use the same pattern of checking for a
partner or cable device before attempting to remove it. Simplify this by
moving those checks into the remove functions.
Cc: Benson Leung <bleung@chromium.org>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210319015103.3751672-1-pmalani@chromium.org
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions