From patchwork Tue Sep 24 21:46:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alessandro Zanni X-Patchwork-Id: 13811243 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E055CF9C6B for ; Tue, 24 Sep 2024 21:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=42fS/11bUiOMSfuMHc8Z8L/JLgZHa52tzymot3taoLU=; b=sWPAc023cRI2Y+mlyXbKTDUmpA lg+NS3Xo/uQ4RalxFzRGA+Rjehb2ZqdYQHjVkGX1+dBdsEPBbSMvdBC8DMfzspfexZ7AYswkl5utV hvbJwZGpRIf42UJpUaRZLefThQIK6lLXeABO+KhpIU8venzCSJxf54woXygrnY5nCQtVTCA7qq4EY jGfnFidbE6OQpDV0uI0vWyd4ZRp94i4T75Br6xDT0dh+gQwed2wqDSHv3CW1vvKTf2kOQwPcjZtoZ MH7BBaZbX+lIZEai3hiJDUHqwo3HswKlJdogYhSTUP9EcDclB2fe7lo01IUAvfL9gESAUtf4Vaj+0 BtggLkHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stDQ3-00000003N72-1WQa; Tue, 24 Sep 2024 21:50:03 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stDOt-00000003My9-3tf2 for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 21:48:53 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c4226a56a8so7554863a12.2 for ; Tue, 24 Sep 2024 14:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727214530; x=1727819330; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=42fS/11bUiOMSfuMHc8Z8L/JLgZHa52tzymot3taoLU=; b=kpwSxpO7gRnYFbpiD2Inlp+U4jpTKLk64UbkxKWqVSlnHmME1llwiAb/l0+bd/WA6s NPCee6gFUuBqhyNxMTK4rGeCcwkuEsHO5dxsTd+QhVWuw0HNnFNUZwHY1D4/6DVczUh8 lXpfDAZ+miXqh/yU3UR3WWfO1oG7h2uO+zbxekaLdiZY0Q+x7dqAwpwKx9z6e5zUtQCp NYxJWJ4jklNgfIvYDdoOXDVuCynX6UQsAXuAQ9kMad/4+7hBjpqKtxw8k3ix2HDzASYL wn1s1NcGU0v2NA2JQaAlp4kDQqbKNtTWUAfaJiub3IyTJQE2bGxIg8EbFhOsZRSTdg6P wKwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727214530; x=1727819330; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=42fS/11bUiOMSfuMHc8Z8L/JLgZHa52tzymot3taoLU=; b=Dhp4hNZ3dmFdnH55EmMi6dp8z31bHY0HHi6p9Jn2shlNEPz/xWPugfVmPUTCRWT9aX jDW7mxMV7cMn9+4CndZknEI8lgK9NudupBEZRoo6ygmXfapigxcFkrKrR5R+ouTsIx/Y 4dxyN908CKtPei38BTaFow550rnC+hQUsspE0bwaJ/4m7pB2k58QWCUBhgF4g3aEXd/8 CXMP9/vG+yiZgxkFRTHFlN78fww1XLBExZpRpAaP6TxWBh2c4sMvBJ5htVXJ9fI78B0k LjwYdFdi1ircMjLreLkqu0zETaIRQMnoSrmCenQzCPn60ZjakWebSSD/FXzuKeRodB/c oXsA== X-Forwarded-Encrypted: i=1; AJvYcCUX+UKR/ng8kpoIpQLqxUp+1NL6B9f1dgvFqzJCgCxQJiDP75VFRnB7BtEC/aZIojkQiai5DPpcYoEM9uSblcvk@lists.infradead.org X-Gm-Message-State: AOJu0YxH70MT9X/PsXo/OH1gcIc0VQIzFzqx9d+LtaXK0iPBBk+8oJfB BlisAfr4GAdhboftOePI0R35eywwuvXVimlkgwTtJFy45lM3o+D9 X-Google-Smtp-Source: AGHT+IEcsh5hbn0VzcMk8VSK6rCIcezG81TD2g56dwCn3Xo8YS56YTtkQkfB/KbdWy/O1qvZOimo5g== X-Received: by 2002:a17:906:c107:b0:a72:50f7:3c6f with SMTP id a640c23a62f3a-a93a0383da8mr52087266b.14.1727214529973; Tue, 24 Sep 2024 14:48:49 -0700 (PDT) Received: from alessandro-pc.station (net-37-119-39-155.cust.vodafonedsl.it. [37.119.39.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9392f500casm134780766b.60.2024.09.24.14.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 14:48:49 -0700 (PDT) From: Alessandro Zanni To: nm@ti.com, ssantosh@kernel.org Cc: Alessandro Zanni , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, skhan@linuxfoundation.org, anupnewsmail@gmail.com Subject: [PATCH] soc: ti: knav_qmss_queue: remove useless statement Date: Tue, 24 Sep 2024 23:46:10 +0200 Message-ID: <20240924214612.38854-1-alessandro.zanni87@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240924_144851_986295_A3A2C127 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove the statement "continue" at the end of the loop where it becomes useless. Problem found with Coccinelle static analisys tool, using continue.cocci script (coccinelle.gitlabpages.inria.fr/website/rules/continue.cocci) Signed-off-by: Alessandro Zanni --- drivers/soc/ti/knav_qmss_queue.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index 6c98738e548a..1cc54905b398 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -723,7 +723,6 @@ static void kdesc_empty_pool(struct knav_pool *pool) if (!desc) { dev_dbg(pool->kdev->dev, "couldn't unmap desc, continuing\n"); - continue; } } WARN_ON(i != pool->num_desc);