From patchwork Tue Nov 3 15:28:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11878091 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F0DAC2D0A3 for ; Tue, 3 Nov 2020 15:31:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9DB0F221FB for ; Tue, 3 Nov 2020 15:31:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XKiZNlAX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IjSdgjyL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DB0F221FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Xi72j7V09aIN8Ny5XHmJnMB4VXvuyXIuAbXLmT+lS5o=; b=XKiZNlAX+7khiS84OyH18gQXB bvqML8F9IjspXewpGRkJonEprhKnkJMyUJulJhk+1oTe9Oo9aO4j7zWyCH2e1PrFgABZHq2PymjfI o5j9QbRycOpP0yhnx+/cuZmqq6IiMYvputDoAVllJSInFi9NSybkeR928QBBTYKPgpTBemj2iClUA oX8sXvtY4oFXGbYg00DnX85r4hQGtuwiwPMUe51vqkaaVnoEOOIqeXpgrgRElriOI7TyjMQBTaf+c lHxHSDy8y/Ak+oz9bpHEKptEW8ttpw7EvAAv33HAVgGfTttC6t6JApOrWz7j0t5j06AWurH4S1K/a 3PD2dOIfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyGw-0002Qo-5b; Tue, 03 Nov 2020 15:30:58 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyFL-0001kU-0J for linux-arm-kernel@lists.infradead.org; Tue, 03 Nov 2020 15:29:20 +0000 Received: by mail-wr1-x442.google.com with SMTP id w1so19038728wrm.4 for ; Tue, 03 Nov 2020 07:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g+k7waY3+QfWzhVKGexLmvVmyJHPNqCtTC+98WzgpXQ=; b=IjSdgjyLA53oPRmCkUcqE9DncaAvo9Msl+j84z6LwG03L7XEelXSYEnE2hEVj4r6fX tswzhFM5GL+mh+oMSqvEZTi+j6x/CKr6AX79Qpl7H1C3lUVg1wtdHYNImer2t5IS31yM Hs78uWgfUPa4WxR6u4pIrVr6UN0Wap5ev/Sb/PqnEtj/3GUb7IIo3Q9GoboCfaf8/9Yv j6J1B/Y7ueW9jCNuwlNL6rpf08e9IJQk9PtjqN7YIXykryasGk87ZTrg3Gb/P1rxNEob gwfabOBOEE59+D4eQ4ojXtaDVZS3chXx2QVAALxEpfYuAYisZRQr086YQKWJLU0ATV+f EKhg== 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=g+k7waY3+QfWzhVKGexLmvVmyJHPNqCtTC+98WzgpXQ=; b=s5J9huQpM6HxDQtuJrddzD/FejEmEab/oJlJut2p3MqbqR+MS0NN18uOBoG7HOkHio HNczXEBjbIeujLkYnghWsNCbtpy7fpPuvoHEju40oyZKaOYa9ppPmOTJmu3q6YbK8vRg luET0BuQUIHYCOfZRgxbLEHKoFGeRAkrFQHiXn4SyJ+PiKVko+EAEYVpPZT7ssrjp2wg ZspTtR+gk6DV1XlxIN3Zy1J4dskJrF4TtBEQ/DBE9g3B9yYVzEl+QtbBPDB4s4wr/RtI NRKbrt58JqKKSH3PUGwvXPvAat0UCPqfN3S+5z4YIJe1dM+0r8sgSDJDPdrRejXnh6wn RDuw== X-Gm-Message-State: AOAM532LbSRmbieg9PvOYB5yY0jAddBm4KSLrDKozQ5NSEC2JTZbyNsX qH9FTE2KlLGp+I+3ti12FxfXpw== X-Google-Smtp-Source: ABdhPJyZf1iQCvYS3vY2aG5u9NnlJ6CKeoiGoNrK+vkGmEIgxUKT2UMLnHx8lFwSZaOlDy8LgWxSeA== X-Received: by 2002:adf:fc8b:: with SMTP id g11mr26960474wrr.300.1604417358112; Tue, 03 Nov 2020 07:29:18 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret' Date: Tue, 3 Nov 2020 15:28:19 +0000 Message-Id: <20201103152838.1290217-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201103_102919_144670_24FA8184 X-CRM114-Status: GOOD ( 14.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sandeep Nair , Cyril Chemparathy , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Santosh Shilimkar Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’: drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Santosh Shilimkar Cc: Sandeep Nair Cc: Cyril Chemparathy Signed-off-by: Lee Jones --- drivers/soc/ti/knav_qmss_queue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index a460f201bf8e7..f36c2dcb26911 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1307,12 +1307,11 @@ static int knav_setup_queue_pools(struct knav_device *kdev, struct device_node *queue_pools) { struct device_node *type, *range; - int ret; for_each_child_of_node(queue_pools, type) { for_each_child_of_node(type, range) { - ret = knav_setup_queue_range(kdev, range); /* return value ignored, we init the rest... */ + knav_setup_queue_range(kdev, range); } }