summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@chromium.org>2021-03-19 02:51:03 +0100
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2021-03-30 18:25:22 +0200
commit639ff208cb37c5a3f0198e62d04962b677d25c9c (patch)
tree5a1f059a6d047635e343e8856ef518a2f597a74d /drivers/tty
parentplatform/chrome: wilco_ec: convert stream-like files from nonseekable_open ->... (diff)
downloadlinux-639ff208cb37c5a3f0198e62d04962b677d25c9c.tar.xz
linux-639ff208cb37c5a3f0198e62d04962b677d25c9c.zip
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 'drivers/tty')
0 files changed, 0 insertions, 0 deletions