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)
commitbbb5fb85cf48757a18870aaeedf6936d5c1f1ead
tree978874d324aec9f91309ca012fe637ccd60e0564
parent8dab6a5939199a5dcf0731eb2dce757837575633
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