From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8FC9ECAAA1 for ; Tue, 30 Aug 2022 23:05:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbiH3XFZ (ORCPT ); Tue, 30 Aug 2022 19:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230372AbiH3XFV (ORCPT ); Tue, 30 Aug 2022 19:05:21 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C403E5C352 for ; Tue, 30 Aug 2022 16:05:18 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id a15so9640117qko.4 for ; Tue, 30 Aug 2022 16:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=03xHIim8cJwL2orZIsFEEaPEGZ5A0SO9Xy6iHS5VgRo=; b=CLAQbMcLQlcO5FDKowqIzEN/KN92ak2XZyugeDeBWg7w2NposY2Jj0vc3RKSyaipPC 5n+rz5aN9vrZdZcWobBxzExvlxNeAKQ+/ORw9XCHzmowsMF8FfKOBcIgL7f+sBLdAcVE pzG6rVKv/POhYE0VTsQSMArU1JrCgmEL0sSco= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=03xHIim8cJwL2orZIsFEEaPEGZ5A0SO9Xy6iHS5VgRo=; b=hWfR1R2vqiJ96XJnb6D/dVgVUUTQzn82V4FBYPvRH8eRXbqS4fAbvtS85/9+8nqWkL FfTeOshIncz2HvhjItuvWmZxyLDLSKUnP1B9GZtQF+r/AhjrZ2HQeJyESCjNjWpaCaC1 rfUXW2D95wxN9dLo9Esa6F0/TnkDvD23J+K/HFThZFrlesJ7WGfL5ikG53GQUE1xo9Z8 z6TZCiSR29dDFiPU/pMRDe4UySyoZCsAk3stigKJca0tdk8gcph3ohfcWa/+8wcAa+Au g0ddFaOwKa16imz2PevCro1Jo6NuPX6oaMwpjXg2whCTcnfrrpd6BO9GqAF67cM+dxk0 Ayug== X-Gm-Message-State: ACgBeo36D+wDq0NuC5uLSXDGPnLgqwCGyNokGepCJBPV2ahiII73C4c/ jtdiBxuRqPcUfa0Cx0l/AOrxH0IA4mRhhMiorqHOguXypErR8g== X-Google-Smtp-Source: AA6agR5RMu+MBNHzM+xUm2TPO1Kqe1FQ42HmfdhzT9rRFEuR+Os0L/+2NDY1lvV3K+ZVgoBLveHvEHFmFHN2ebLu6kc= X-Received: by 2002:a05:620a:4088:b0:6bc:60a5:bba9 with SMTP id f8-20020a05620a408800b006bc60a5bba9mr13980652qko.170.1661900717259; Tue, 30 Aug 2022 16:05:17 -0700 (PDT) MIME-Version: 1.0 References: <20220830225831.2362403-1-swboyd@chromium.org> <20220830225831.2362403-3-swboyd@chromium.org> In-Reply-To: <20220830225831.2362403-3-swboyd@chromium.org> From: Prashant Malani Date: Tue, 30 Aug 2022 16:05:05 -0700 Message-ID: Subject: Re: [PATCH 2/4] platform/chrome: cros_typec_switch: Remove impossible condition To: Stephen Boyd Cc: Benson Leung , linux-kernel@vger.kernel.org, patches@lists.linux.dev, chrome-platform@lists.linux.dev, Tzung-Bi Shih Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 30, 2022 at 3:58 PM Stephen Boyd wrote: > > The type of 'index' is unsigned long long, which can't possibly be less > than zero. Remove the impossible check. > > Cc: Prashant Malani > Cc: Tzung-Bi Shih > Signed-off-by: Stephen Boyd Acked-by: Prashant Malani