From patchwork Sun Dec 5 00:37:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 12694805 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 03FF9C433F5 for ; Sun, 5 Dec 2021 00:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mSqfhscvIBb0MhXi9TrUkct/tYO2XrYFZcpP65mbByk=; b=x9nb4PiiG5LJrm Mq16ET5CbcDipV5l/YlCIXyU8JMopSE/szHJs+Px3YC4eVhcqfOo/ncv0JxgJUzHLraZu18Sl6lfu Yejes8o2rGSY/HSEDh1HiZXo/uOUTK3efUOHpRK0HPeF2tOIhl0x6Kix/16J6vB1PjF1/B+KzqWtF KU2CCkR0jp1rv3zb3Vn9WGTcU+q9+RwnLup+W3QvWEDYidos+fCAZcNQjgBOk/R8rD9UaguHwy1j9 f5Ap/Fm37Szik9f+XWl0KSDpafnDS9dvO1MR/FkRnVuP5ND/ao0j1pNSsaw6JEVTX5W11X1egYU3C zOh2MiFh0Uig9Vr2Tosw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtfXP-0014jP-Sm; Sun, 05 Dec 2021 00:37:56 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtfXK-0014iL-GT for linux-arm-kernel@lists.infradead.org; Sun, 05 Dec 2021 00:37:51 +0000 Received: by mail-wr1-x42d.google.com with SMTP id c4so14053421wrd.9 for ; Sat, 04 Dec 2021 16:37:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7VjfZ6s7OTc7tj3N8PNJEcBVhsk9b4bji9ek2g0iMm8=; b=QRjIsvieoWsDfUbKAe/qb+/1XMZw7UDe2ZNqCOA/IoJqfT/xmqD4Uerap97yZEreZI cAM28FVHU1PtO8BcC9o8Rf7bhMb+O2lxzE1qYL5CRbI5p9FPoQOaSxlrhKXjkJS1upRF kQbkWVKcPT8yirzOG6UmwihOE4+SRAZOXmL+L4F4Tdh6vusSA0CmiB7YzAkL0AWORUfS BOV0pVelm4uLpXb16CgGeayJmBt5zWV41Air+gbfPt3K1+zfivOlNwBJ23zQMKa4PZ1h BlTadp0H5+/XpY70E9mxFHeVzdQF3hMQmuM7hsAaRkNpf+SwBrGUHEdKJklbc9dDNsxn EHCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7VjfZ6s7OTc7tj3N8PNJEcBVhsk9b4bji9ek2g0iMm8=; b=kD/5xP02HYPwelyWOxKu4qQX/woHQSD7DNgvy6bF/7atI9SfKBPKSlzHMwEuMnquyB M5zV5M2I8Nvh1FljOP70d9Voh+zKkSY3A1pohbTl34o79kKJ2lLGE7wmGE6httK+fS/U e28RMPYXi8Bv48I9hJ4lMIKs5GK+1pz9HZac7HuF6yQpJJerqf3tWYY+vpXHT7fj+cyK jDyAdqDNO4tZiWvBe7MHwmRm71UFlV0gSjaL04TyhoB12Np27tNu6cixP3bAH7+QtI2R t0SJS6AkBqWmZHj6+ZH1zE619SM0oTJvQ8AS9hZOGqyq1sDW73vWaByy/rfMXuyhB8DN 0u8Q== X-Gm-Message-State: AOAM530SV4evdyo88/OKYuDaLm42BguA8iYxXs5RrGO6+keUaCf9H5+u vpxvvp/Vl6gm7Dgzn+tjbbS564++HQlhEw== X-Google-Smtp-Source: ABdhPJzFE+gCgORKcPtapxdDM4kC/m0056wPHWLT4KpUmCb7sZ82E83O+cRXsYqLCWNjOgQMAt8FJQ== X-Received: by 2002:a5d:54c5:: with SMTP id x5mr30920385wrv.607.1638664666339; Sat, 04 Dec 2021 16:37:46 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id w2sm6771582wrn.67.2021.12.04.16.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Dec 2021 16:37:46 -0800 (PST) From: Colin Ian King To: Patrice Chotard , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: c8sectpfe: remove redundant assignment to pointer tsin Date: Sun, 5 Dec 2021 00:37:45 +0000 Message-Id: <20211205003745.227491-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211204_163750_593873_F19CFC04 X-CRM114-Status: GOOD ( 10.47 ) 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 Pointer tsin is being assigned a value that is never read. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King Reviewed-by: Patrice Chotard --- drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c index 02dc78bd7fab..e1f520903248 100644 --- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c @@ -930,12 +930,8 @@ static int configure_channels(struct c8sectpfei *fei) /* iterate round each tsin and configure memdma descriptor and IB hw */ for_each_child_of_node(np, child) { - - tsin = fei->channel_data[index]; - ret = configure_memdma_and_inputblock(fei, fei->channel_data[index]); - if (ret) { dev_err(fei->dev, "configure_memdma_and_inputblock failed\n");