]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_typec_switch: Remove impossible condition
authorStephen Boyd <swboyd@chromium.org>
Tue, 30 Aug 2022 22:58:29 +0000 (15:58 -0700)
committerTzung-Bi Shih <tzungbi@kernel.org>
Thu, 1 Sep 2022 02:15:34 +0000 (10:15 +0800)
commit71b085cb1441e8b650b36e6eb340374b23ad6610
tree978874d324aec9f91309ca012fe637ccd60e0564
parent6f4e50e02f6757866e739279b74409949621e40c
platform/chrome: cros_typec_switch: Remove impossible condition

The type of 'index' is unsigned long long, which can't possibly be less
than zero. Remove the impossible check.

Cc: Prashant Malani <pmalani@chromium.org>
Cc: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220830225831.2362403-3-swboyd@chromium.org
drivers/platform/chrome/cros_typec_switch.c