From patchwork Sat Dec 26 21:37:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 352470 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp8633854jai; Sat, 26 Dec 2020 13:39:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmmLdGzNB6YuOLJrgRI1VuF2POGMxq6L4qyouIwVw+QmvAkIcBriZLrUPX1nK67gyYiV+w X-Received: by 2002:a17:906:6606:: with SMTP id b6mr35418172ejp.151.1609018798012; Sat, 26 Dec 2020 13:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609018798; cv=none; d=google.com; s=arc-20160816; b=0A3kxCLGfRs5gV+kbHby2dwRM8EP8reziXrWiypnLn4eSRJ3GF5a4pQfsEDy2mcwc0 JNj52SehjzoSed4oyNCKzA2eWzJQRziSL9Lnb8TmsF3MdLoRCR/bvBHBEHlGynHPZriI jkF2++StKGK9k37iDHHHhgzMbi2a79tcxBWRAwbagXut/AgnppyJm2cdLIGXcnKZcCfx nXYIUXMIEk+H3EGJ1Yn69z141iLDiIy9qgSruqZiCUz7vh/lmtKi0dflu50ZVEq/sSmi 3jzlsj3/E5uxgmszFgKqc77O4DSW0Zfqb7nx+4opxhQx5I9a83qClgMp3XVLMvlh+Gyw U03w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RKCfsVGa3InM/ueidbaTHb3IhiqFNjw9eRGba4OKyqE=; b=BeUsPyL9DjgHIFLSDbujaZRJ/dkuFOp822g+f8rFhFSo+QBWoPQ3cn0sRmAU71t9kz pPMucOXBIJzjJOOib04UXY5xX/DwBUYQPLflcHLFKXMNycQOP3fxpczoUdoSo3p5PWFY GdteCwcmg+qhftfdCk7iS/1fxbOBNZ+0XbXe2g1UJ4yNL9jvxCSMVxMRxMf8w7/FNwF8 Q/UCgynydiblsB9Mbld7F4nNXdffut7N5V2aqPI9ehGt1AwSuoKdWV2iEVs7XcS0Rnem 9o/L/w7WWWf5OWrtPbqbmfaICU883pY6Aomi1M50UtiXtIWdVTYvqucWo3ZPvc10/N0V gE1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jnaYYcyV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si18000694edc.229.2020.12.26.13.39.57; Sat, 26 Dec 2020 13:39:58 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jnaYYcyV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726172AbgLZVi3 (ORCPT + 8 others); Sat, 26 Dec 2020 16:38:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbgLZViX (ORCPT ); Sat, 26 Dec 2020 16:38:23 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B1B6C0613ED for ; Sat, 26 Dec 2020 13:37:43 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id 2so6406332ilg.9 for ; Sat, 26 Dec 2020 13:37:43 -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=RKCfsVGa3InM/ueidbaTHb3IhiqFNjw9eRGba4OKyqE=; b=jnaYYcyV6rMMpn6Z7pMxzaSc62h0MO67PatEmPkDJLCA4occu9Weo7eJOOkZNFPmdY XUzcpTyNgaEm9qLxw8tHHTrHMNYI7Qriw4+480dBTRnvwrJF7P2TDcjZDd2yuy/mL87G +RfKwMGziXKSyTMDOHJ8nV8XDMwW6ucW9UUsuFCtpPll9Q4v+hsccZUVMNxtEGMKLx8Y A4hRJBQ5hJaqBaG8XwYQOsFmmgdfSgZ3rfGzbOelMUWdvQTeXwyan4He9GaEbMaWmIKT XM+iJMF9r0n0FYhQjiVYPDwhe8GG8qR2O8NBJSkgRF7K3eJ8y6Ithtk+npwLt8G5CLba RmmQ== 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=RKCfsVGa3InM/ueidbaTHb3IhiqFNjw9eRGba4OKyqE=; b=Jg12+HL/885f2B486lOG/XRVcgx/KXy5qhahEz0/eKvYYxn2SxTevqcNg7tZDaygvp dRjXNJv+tzwoXQlwvFCgIdR1miAwvV0lnLjI5wzbEhUAHdtwt+LOWhYbAzFNhuhYeTNB w4+0lQKhtybxkHStisgOkt/MDWWawtM6hdZ7uwrCvj8LrGFKx8PUYD1OWlP3+mWDub0r 4S7YGISB2YLSbnqbTcgfUs5+IHT0OJ5YZNhmxjKSUyIupTrNxFdardFlCzPnILv1+v35 hFohW9ZIGhXpFuSr+yxeuU7tvc8gjnH1zqhzySunVFGXGU6C/E4XNWcCqkY1jZalHZkC J76g== X-Gm-Message-State: AOAM531f4y1SM5l/gqgyA5L62payuBCR32e3HxnLBOoRqAfS1WTc+aSK bLawz8OCDkR5coEd2EhYvSwyWA== X-Received: by 2002:a05:6e02:e44:: with SMTP id l4mr38824035ilk.208.1609018662467; Sat, 26 Dec 2020 13:37:42 -0800 (PST) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id u8sm30582763iom.22.2020.12.26.13.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 13:37:41 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH net 1/2] net: ipa: don't return a value from gsi_channel_command() Date: Sat, 26 Dec 2020 15:37:36 -0600 Message-Id: <20201226213737.338928-2-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201226213737.338928-1-elder@linaro.org> References: <20201226213737.338928-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Callers of gsi_channel_command() no longer care whether the command times out, and don't use what gsi_channel_command() returns. Redefine that function to have void return type. Reported-by: kernel test robot Fixes: 6ffddf3b3d182 ("net: ipa: use state to determine channel command success") Signed-off-by: Alex Elder --- drivers/net/ipa/gsi.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) -- 2.27.0 diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index 579cc3e516775..e51a770578990 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c @@ -454,7 +454,7 @@ static enum gsi_channel_state gsi_channel_state(struct gsi_channel *channel) } /* Issue a channel command and wait for it to complete */ -static int +static void gsi_channel_command(struct gsi_channel *channel, enum gsi_ch_cmd_opcode opcode) { struct completion *completion = &channel->completion; @@ -489,12 +489,10 @@ gsi_channel_command(struct gsi_channel *channel, enum gsi_ch_cmd_opcode opcode) iowrite32(0, gsi->virt + GSI_CNTXT_SRC_CH_IRQ_MSK_OFFSET); if (success) - return 0; + return; dev_err(dev, "GSI command %u for channel %u timed out, state %u\n", opcode, channel_id, gsi_channel_state(channel)); - - return -ETIMEDOUT; } /* Allocate GSI channel in NOT_ALLOCATED state */ @@ -503,7 +501,6 @@ static int gsi_channel_alloc_command(struct gsi *gsi, u32 channel_id) struct gsi_channel *channel = &gsi->channel[channel_id]; struct device *dev = gsi->dev; enum gsi_channel_state state; - int ret; /* Get initial channel state */ state = gsi_channel_state(channel); @@ -513,7 +510,7 @@ static int gsi_channel_alloc_command(struct gsi *gsi, u32 channel_id) return -EINVAL; } - ret = gsi_channel_command(channel, GSI_CH_ALLOCATE); + gsi_channel_command(channel, GSI_CH_ALLOCATE); /* If successful the channel state will have changed */ state = gsi_channel_state(channel); @@ -531,7 +528,6 @@ static int gsi_channel_start_command(struct gsi_channel *channel) { struct device *dev = channel->gsi->dev; enum gsi_channel_state state; - int ret; state = gsi_channel_state(channel); if (state != GSI_CHANNEL_STATE_ALLOCATED && @@ -541,7 +537,7 @@ static int gsi_channel_start_command(struct gsi_channel *channel) return -EINVAL; } - ret = gsi_channel_command(channel, GSI_CH_START); + gsi_channel_command(channel, GSI_CH_START); /* If successful the channel state will have changed */ state = gsi_channel_state(channel); @@ -559,7 +555,6 @@ static int gsi_channel_stop_command(struct gsi_channel *channel) { struct device *dev = channel->gsi->dev; enum gsi_channel_state state; - int ret; state = gsi_channel_state(channel); @@ -576,7 +571,7 @@ static int gsi_channel_stop_command(struct gsi_channel *channel) return -EINVAL; } - ret = gsi_channel_command(channel, GSI_CH_STOP); + gsi_channel_command(channel, GSI_CH_STOP); /* If successful the channel state will have changed */ state = gsi_channel_state(channel); @@ -598,7 +593,6 @@ static void gsi_channel_reset_command(struct gsi_channel *channel) { struct device *dev = channel->gsi->dev; enum gsi_channel_state state; - int ret; msleep(1); /* A short delay is required before a RESET command */ @@ -612,7 +606,7 @@ static void gsi_channel_reset_command(struct gsi_channel *channel) return; } - ret = gsi_channel_command(channel, GSI_CH_RESET); + gsi_channel_command(channel, GSI_CH_RESET); /* If successful the channel state will have changed */ state = gsi_channel_state(channel); @@ -627,7 +621,6 @@ static void gsi_channel_de_alloc_command(struct gsi *gsi, u32 channel_id) struct gsi_channel *channel = &gsi->channel[channel_id]; struct device *dev = gsi->dev; enum gsi_channel_state state; - int ret; state = gsi_channel_state(channel); if (state != GSI_CHANNEL_STATE_ALLOCATED) { @@ -636,7 +629,7 @@ static void gsi_channel_de_alloc_command(struct gsi *gsi, u32 channel_id) return; } - ret = gsi_channel_command(channel, GSI_CH_DE_ALLOC); + gsi_channel_command(channel, GSI_CH_DE_ALLOC); /* If successful the channel state will have changed */ state = gsi_channel_state(channel); From patchwork Sat Dec 26 21:37:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 352469 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp8633848jai; Sat, 26 Dec 2020 13:39:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjx+BwXazMM6htUW9Lp9aO4r9IBn7UEfsXehfu8/UFgD49AROl63NJO+GOQlkdeWgnMuvS X-Received: by 2002:a17:906:b217:: with SMTP id p23mr31845220ejz.461.1609018797639; Sat, 26 Dec 2020 13:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609018797; cv=none; d=google.com; s=arc-20160816; b=Xu86/M02a5rdzELLPj4H+a9Esz+jcBonz2F68afEwZ9Ut7XsNPuclycP42dsP0bZ98 LBIJBUPbPK9fiuFi/+Q8k3X4EhvcTIOn3qZow+ZWWVZKw6luicHHcHA1AS/1GfMPCpvZ t3DH9P7LTlF6S2nnNYfEGEiVY2AMCAell7Kx4BFgNZ7x1f7mq0dbpf1Eyv93vJd6SQC8 fApTtw9RXvLtzqWHUylVftdVwsDMJW50Z+KnRVkO7BIpBo16RebUMRu3NlSD87P76hKp G/zMqi0mb7lFSeGHM7cbECuxLn5grN9/UhaL6qiU7z88ltD9o3JRS9vwQXbb0ziVbrxe Hm4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+EelmeiCwh0mSgh0t/gPM5pOh0Ts2KQEn5sM0mWzh/c=; b=PkCQvzlGTV46ipxuY5vOCZMkAwG6f4DjwSq9ihekX14p3Y+Nr+wTsL2jQcnjrtXLdF F5XDudAoSbsDcmTqcyK8zUrYTgoHLPG7as0xErgeznutZHTgALPvl8J29GwiA7OJWv0c tzazP2cpH3evIg7vPftRCF06T98uar3KAdAXEdbALkynUl6WZ48/aYj9S8OA4uQwhfz9 Uok9u6qH2TJZA9PWbqyJfnzaZoD/FQoZBMMsDi7ELbDr1nkV3v3L/BqxcKQYvTvJsd1Z FY7wTsf+589rki7aSTploAZc7emdabIcn+lgoVI4ZMdKwR43SDfSkzY7Odv9uhDHdVkt m3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v15rRe0X; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si18000694edc.229.2020.12.26.13.39.57; Sat, 26 Dec 2020 13:39:57 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v15rRe0X; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726137AbgLZVi2 (ORCPT + 8 others); Sat, 26 Dec 2020 16:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgLZViY (ORCPT ); Sat, 26 Dec 2020 16:38:24 -0500 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132FFC061786 for ; Sat, 26 Dec 2020 13:37:44 -0800 (PST) Received: by mail-io1-xd2b.google.com with SMTP id m23so6371261ioy.2 for ; Sat, 26 Dec 2020 13:37:44 -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=+EelmeiCwh0mSgh0t/gPM5pOh0Ts2KQEn5sM0mWzh/c=; b=v15rRe0XLufvITPY3eBFUGrxw7IrH5moQu5pQ1ZU8Tr/3V7cc7B0nwtZ5IHxL7pdCv an6NBskCa9l4kjhFnxBJrT0vDJPvIiSd6+JSVuepbDEhTqENf3cZ2V8RcmXI/0UFnfV+ JF6r5Bs70TvNfQDyFan7Gwx72nyBwCK/xcnUubnhyoGEH8rLyUcrBpIrrxqtRwIMGAgm 5tm78NwhdR8N0CZYcnWFgdYyHvRP762HefKO6upkAt9XX0ca8Uf4cX6xdbsYhSsAU0af ih5Un7YeB5adqn4R/5j07LkjA6mCpjObiJUA1cymMQ72t0ALQz1EaAlvbmr9wt9hC/mI TuBA== 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=+EelmeiCwh0mSgh0t/gPM5pOh0Ts2KQEn5sM0mWzh/c=; b=pS3cCm4Q7qzPpfGlOFgR8Jx4OEiHUJnPdflD2yPi/SekRe25UJV+JXzLByhNC13Fav efEPVyvd2xoLRV+cKtnLuA5aBg1Fd3SbwHHmJhi2/MOIuAJV9M0p7yEThwpjNX6iUHla tFmTxZoAEjiaQ3Ak1s1xkdO9fdAJ8WilU7tXr6msQRG1TtWGeg/0Qp+mjcpmXyD53ehk qEeCic+eiKy+fAk4TvVbZw7uu5BUfg88H1ptK7sj161NSpLcF2q1+BlauLaXXuDJrm6x EHZo5vxqgV+oi2p80QPcMTQudWYx5Son+X7Hxkm0IhEGziFCjCSIqK07sFoEpALoXUWf Vo8w== X-Gm-Message-State: AOAM531hdTBXc1Jfnw3Tq14DxFP6bFRbzo/KIb5f5u6tnyDF8zh55tpL fvZ75QwK5ESvhlm0Iy5eNNn52Q== X-Received: by 2002:a5e:9242:: with SMTP id z2mr32257326iop.175.1609018663463; Sat, 26 Dec 2020 13:37:43 -0800 (PST) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id u8sm30582763iom.22.2020.12.26.13.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 13:37:42 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH net 2/2] net: ipa: don't return a value from evt_ring_command() Date: Sat, 26 Dec 2020 15:37:37 -0600 Message-Id: <20201226213737.338928-3-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201226213737.338928-1-elder@linaro.org> References: <20201226213737.338928-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Callers of evt_ring_command() no longer care whether the command times out, and don't use what evt_ring_command() returns. Redefine that function to have void return type. Reported-by: kernel test robot Fixes: 428b448ee764a ("net: ipa: use state to determine event ring command success") Signed-off-by: Alex Elder --- drivers/net/ipa/gsi.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) -- 2.27.0 diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index e51a770578990..14d9a791924bf 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c @@ -326,8 +326,8 @@ gsi_evt_ring_state(struct gsi *gsi, u32 evt_ring_id) } /* Issue an event ring command and wait for it to complete */ -static int evt_ring_command(struct gsi *gsi, u32 evt_ring_id, - enum gsi_evt_cmd_opcode opcode) +static void evt_ring_command(struct gsi *gsi, u32 evt_ring_id, + enum gsi_evt_cmd_opcode opcode) { struct gsi_evt_ring *evt_ring = &gsi->evt_ring[evt_ring_id]; struct completion *completion = &evt_ring->completion; @@ -361,19 +361,16 @@ static int evt_ring_command(struct gsi *gsi, u32 evt_ring_id, iowrite32(0, gsi->virt + GSI_CNTXT_SRC_EV_CH_IRQ_MSK_OFFSET); if (success) - return 0; + return; dev_err(dev, "GSI command %u for event ring %u timed out, state %u\n", opcode, evt_ring_id, evt_ring->state); - - return -ETIMEDOUT; } /* Allocate an event ring in NOT_ALLOCATED state */ static int gsi_evt_ring_alloc_command(struct gsi *gsi, u32 evt_ring_id) { struct gsi_evt_ring *evt_ring = &gsi->evt_ring[evt_ring_id]; - int ret; /* Get initial event ring state */ evt_ring->state = gsi_evt_ring_state(gsi, evt_ring_id); @@ -383,7 +380,7 @@ static int gsi_evt_ring_alloc_command(struct gsi *gsi, u32 evt_ring_id) return -EINVAL; } - ret = evt_ring_command(gsi, evt_ring_id, GSI_EVT_ALLOCATE); + evt_ring_command(gsi, evt_ring_id, GSI_EVT_ALLOCATE); /* If successful the event ring state will have changed */ if (evt_ring->state == GSI_EVT_RING_STATE_ALLOCATED) @@ -400,7 +397,6 @@ static void gsi_evt_ring_reset_command(struct gsi *gsi, u32 evt_ring_id) { struct gsi_evt_ring *evt_ring = &gsi->evt_ring[evt_ring_id]; enum gsi_evt_ring_state state = evt_ring->state; - int ret; if (state != GSI_EVT_RING_STATE_ALLOCATED && state != GSI_EVT_RING_STATE_ERROR) { @@ -409,7 +405,7 @@ static void gsi_evt_ring_reset_command(struct gsi *gsi, u32 evt_ring_id) return; } - ret = evt_ring_command(gsi, evt_ring_id, GSI_EVT_RESET); + evt_ring_command(gsi, evt_ring_id, GSI_EVT_RESET); /* If successful the event ring state will have changed */ if (evt_ring->state == GSI_EVT_RING_STATE_ALLOCATED) @@ -423,7 +419,6 @@ static void gsi_evt_ring_reset_command(struct gsi *gsi, u32 evt_ring_id) static void gsi_evt_ring_de_alloc_command(struct gsi *gsi, u32 evt_ring_id) { struct gsi_evt_ring *evt_ring = &gsi->evt_ring[evt_ring_id]; - int ret; if (evt_ring->state != GSI_EVT_RING_STATE_ALLOCATED) { dev_err(gsi->dev, "event ring %u state %u before dealloc\n", @@ -431,7 +426,7 @@ static void gsi_evt_ring_de_alloc_command(struct gsi *gsi, u32 evt_ring_id) return; } - ret = evt_ring_command(gsi, evt_ring_id, GSI_EVT_DE_ALLOC); + evt_ring_command(gsi, evt_ring_id, GSI_EVT_DE_ALLOC); /* If successful the event ring state will have changed */ if (evt_ring->state == GSI_EVT_RING_STATE_NOT_ALLOCATED)