From patchwork Tue Apr 5 17:59:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 12801821 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 6095AC433F5 for ; Tue, 5 Apr 2022 18:01:42 +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=mR0yQsMNalxxm+Gf/WgyvZVgds/XdciuoFn8qkxkf5k=; b=T6uTCseXQxJ66G q0JZiZr1eWvWIX8vI4r3pAsV1F2yfiZngxnRXd23X8QwCK22B304/pNFUE4IzEFr28vt38rn2Q7n3 HneFKXd9EjwySgJV6WajJbOiOnT9V5jB+M5uRW462LjB54juei6W1P1Xke0VMrwuQhSNSYyb8v13N EJYHyt1+MuJm6fWBemsVKK+bFwEoIAZ+Q9Q7PL7ENc+v4jvQjVneO3tRZRCWu6rOZDuQGLWSDpbG+ Ng2jPqRVtXl4uzgBL+iO1UGGlM+ue3gLtVkOcqIXV3gf/KVEDt0Yp8hBaJkx5g/f8WjqyvEkf69og gaX0zbDEb//53yEv7CJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbnTL-0029DB-Pw; Tue, 05 Apr 2022 18:00:07 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbnTI-0029CZ-FX for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2022 18:00:05 +0000 Received: by mail-wr1-x435.google.com with SMTP id u3so20586068wrg.3 for ; Tue, 05 Apr 2022 11:00:01 -0700 (PDT) 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=ps9sabn/FLiol/hOAkHVK8/MzrVBlohNvXit/I8IEYc=; b=R44RXszOTrCfg9a6xQntX7eXLlcenLZQ79iHWwZfWh9PijVC/UjlQitBO/Yt/Wq/W5 dTA4dRF74W0DLZK0MUpa6PxqZxtBFxQmoUyDUjy0e4JVi5WXu/xU+Y1Hzb7op13pN/t1 Vco1rVX5eqUYMewLGvFa+zlth4/k7DCJ+ThdQOvI7x0KHIQ5FaPPk/UWHJC1orymLQX4 7XSCpRaubPqT0f6R2D/NEp8qzZ0wueIQDW44oLsn/B677uMWwY0PSYg/po63Ac2Z5RkA BLP8vayDRRtqY/sys3mO8EU3v1ruGqddsM+LoJibpZoG4yzJujdjCt1+X2uICb0xzSeQ swXw== 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=ps9sabn/FLiol/hOAkHVK8/MzrVBlohNvXit/I8IEYc=; b=3k8JX4fr3yCgBhf5zhIGnJnWUaLSfiCY0mvPRv1IHgi23f32bclwehtI2IreoOD6D8 +E9dm2lTRNHbbsNbUQQCfr2Lzc1VHVfz/CwfGOGRrFoY6ESVW4U0bZpV6zdlCwwZbnVc aHflVMURCw0GhOdxa6bG4Q25vKRvx0cyObJr6Gek3+AnHx2gFCBIzx55MH1vdXuOtH3f jVAcPApI1Wfk2iSxUQs+hrEJKxYLJNFJ7ZQirKu/2xtb0EMiGM1+r597nUM37c+t58vg EOmImlvF4KF0SUlZJQ5LhkvvS+KWNlR/K+E6J+Gzw5+ddoTzIwLifyiHyjM4doMBsys0 Gd7Q== X-Gm-Message-State: AOAM533qY3C+82v9LU6PaPkSqJP9WS4cN8l2MTIy6gV4evulk61uJZfo isHkhzwwjGFxqrZpYWgcb0w= X-Google-Smtp-Source: ABdhPJzPk+TK/I+NTaHUbvTpHCArFr87ss2K8cjZe77v1loJE5zgGUwLw+jFL7OH+UyTRqfqB5ZSBw== X-Received: by 2002:a5d:5608:0:b0:206:11c2:b65d with SMTP id l8-20020a5d5608000000b0020611c2b65dmr3663036wrv.215.1649181600255; Tue, 05 Apr 2022 11:00:00 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id k9-20020adfb349000000b00206101fc58fsm6898756wrd.110.2022.04.05.10.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 10:59:59 -0700 (PDT) From: Colin Ian King To: Andrzej Pietrasiewicz , Jacek Anaszewski , Sylwester Nawrocki , 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: platform: samsung: remove redundant assignment to variable m Date: Tue, 5 Apr 2022 18:59:59 +0100 Message-Id: <20220405175959.223443-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220405_110004_560235_E0871E9F X-CRM114-Status: GOOD ( 11.71 ) 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 The variable m is being assigned a value that is never read, it is being re-assigned in both paths of the following if-statement. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King --- drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c b/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c index 01b47b3df1e7..33e6e85dfd78 100644 --- a/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c +++ b/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c @@ -52,7 +52,6 @@ void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode) { unsigned long reg, m; - m = S5P_PROC_MODE_DECOMPR; if (mode == S5P_JPEG_ENCODE) m = S5P_PROC_MODE_COMPR; else