Message ID | 20210514014011.2832707-7-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=TN+VP0oQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FhB8m0rXhz9sWY for <incoming@patchwork.ozlabs.org>; Fri, 14 May 2021 11:42:00 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AE6082D61; Fri, 14 May 2021 03:41:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="TN+VP0oQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4B75382B45; Fri, 14 May 2021 03:40:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3493A8164E for <u-boot@lists.denx.de>; Fri, 14 May 2021 03:40:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd29.google.com with SMTP id k16so12655003ios.10 for <u-boot@lists.denx.de>; Thu, 13 May 2021 18:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+C2eHGzduBTFFj1/RjFsgkvjLhduglPHsq21Qwq+IpU=; b=TN+VP0oQT57g4JjTrJTcTrKs4dqrYG5DvzRNsOh/UiNSQ7EEWQAqec6NW+nwTLZpN/ sHwumeKBDXONs8D+6tRVrqpjD9YUOXqgY6yl/EKrzmA4HCV6Ckn3Y7+Z8id1Ru8JuYnO 5lLifW+uT2UWMO5rIpcniNtDIlQX63MP3NS1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+C2eHGzduBTFFj1/RjFsgkvjLhduglPHsq21Qwq+IpU=; b=VRjStgPMtKZb2lIY1EecpewpQ3UkrcLw+TzWNs/DlsWefPztQ6u/kXN0DAvRE4FCP+ rUMCNI+6TET423KQDR0tnuU8mZ5zIpu2ZYeglBqqk/4Hjn7PD1iTFJPmDdonbFhw91Nc n8+3cn+Ea3WpWfRvC2rUtx8TI9fwqO6Go9JIE3veFeT6iXY6/0u/pSlmeK6vMFz5dK2W D3z3ua/h/gGhfayV8TgMWZcVqO/nns7REgL/GtsIyQF63PDDRCJ3vj+b8FJfm0h5POJ0 93r38viD6d7Qg8/Xg/ZLV5BSxMUT/3GmYkThpryRSXUEcht8Mfl52hQA8GihA9/C4jv/ iTBg== X-Gm-Message-State: AOAM531YRfNUbkM1YTKkWvrOP/9m8bh/jXa0Wu3XULSQ1MzPPpfcZP1q 6pcYAC2IKey7h0CbkIW8vawwUjOVuP6QX0Pw X-Google-Smtp-Source: ABdhPJySk1pfvhwc+/GLp1HlE4TXA2C72V6yD+Zmy51JUGtn3CK/CWc+SveZPw6lGX+jnnchATPqdg== X-Received: by 2002:a5d:9598:: with SMTP id a24mr32604933ioo.24.1620956418739; Thu, 13 May 2021 18:40:18 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id h4sm2223203ilh.69.2021.05.13.18.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 18:40:18 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v2 09/16] sandbox: scmi: Indicate dead code for coverity Date: Thu, 13 May 2021 19:39:25 -0600 Message-Id: <20210514014011.2832707-7-sjg@chromium.org> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog In-Reply-To: <20210513193923.v2.1.I85633a7354c5b2ad5c55257607280392d069d70c@changeid> References: <20210513193923.v2.1.I85633a7354c5b2ad5c55257607280392d069d70c@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
[v2,01/16] sandbox: net: Ensure host name is always a valid string
|
expand
|
diff --git a/drivers/firmware/scmi/sandbox-scmi_devices.c b/drivers/firmware/scmi/sandbox-scmi_devices.c index 66a67928817..fc2dad69c97 100644 --- a/drivers/firmware/scmi/sandbox-scmi_devices.c +++ b/drivers/firmware/scmi/sandbox-scmi_devices.c @@ -121,6 +121,7 @@ err_regul: n = SCMI_TEST_DEVICES_RD_COUNT; err_reset: for (; n > 0; n--) + /* dead code, if SCMI_TEST_DEVICES_RD_COUNT < 2 */ reset_free(priv->devices.reset + n - 1); return ret;
This code is not used due to the value of SCMI_TEST_DEVICES_RD_COUNT. However, it might increase one day. Add a comment. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 312942) --- Changes in v2: - Add a standard comment instead of a Coverity annotation drivers/firmware/scmi/sandbox-scmi_devices.c | 1 + 1 file changed, 1 insertion(+)