From patchwork Mon Apr 17 02:22:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 751235 X-Patchwork-Delegate: richard@nod.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w5sTc6tngz9s1h for ; Mon, 17 Apr 2017 12:21:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tv8HlAhN"; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=agner.ch header.i=@agner.ch header.b="aX6+yemX"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=UCm5VOxb7PltHkku97/WIeOZDUAUT5u5CDsz+lYDpco=; b=tv8 HlAhNHE1c6My5MAzhST67Bz/quSJcealsI07q1BUzpCqZoFBhKsJ+kDrZ3qOrlBq57NEeY8cdLXjn iaoDD5C04BkQFPJXf7fFepWCLIvpacumkn58v70adgC/RkR0g+a+gIHBy5Uz8O8W7lkIyT8YmMK4y 1e/NwpVwtADcBtBmiwoswK7qDVokt9LH/JS5x4OgDV0mfCFd1Y32LAZUSHq3dCDJ3vsLsTBD2/Q79 SxAPcEW9weUpIZMGuScBC8NWuqZR8OgdqMR6PFGUvePfDpOhOe/VVRdUSMyyvuTUtPU8dPhd6ZOut 3IhOU3acTH08xOBMYDnzM1yFn31YAaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1czwIZ-0005CC-8k; Mon, 17 Apr 2017 02:21:51 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1czwI8-0005AR-Lg for linux-mtd@lists.infradead.org; Mon, 17 Apr 2017 02:21:27 +0000 Received: from trochilidae.lan (unknown [IPv6:2601:602:8801:c3e0::edf]) by mail.kmu-office.ch (Postfix) with ESMTPSA id B5B605C0B24; Mon, 17 Apr 2017 04:20:53 +0200 (CEST) From: Stefan Agner To: richard@nod.at, dedekind1@gmail.com, adrian.hunter@intel.com Subject: [PATCH] UBIFS: remove unnecessary assignment Date: Sun, 16 Apr 2017 19:22:43 -0700 Message-Id: <20170417022243.4459-1-stefan@agner.ch> X-Mailer: git-send-email 2.12.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1492395654; bh=4JXd1lfxeP06CtClpTtStq6hvy9GTzrvL8G8oS+bk9g=; h=From:To:Cc:Subject:Date:Message-Id; b=aX6+yemX4Wb+bnhKn3pIcJR9Yoy20UocRZxOaaQKqrY1jaHUI9CIGLmjHHXZCHZJhQS3pY+D4enWa0U9v1HmvrOL73puaMPpwM5Q1iljL1R/5cutQOTARsOHIurnv+EKTjXLCIq2W0/Cs/IMEsHD7mivKP++FhrXc7XuTccj6UE= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170416_192124_867327_EA49FFA1 X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, Stefan Agner MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Assigning a value of a variable to itself is not useful. Signed-off-by: Stefan Agner --- fs/ubifs/recovery.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c index 586d59347fff..3af4472061cc 100644 --- a/fs/ubifs/recovery.c +++ b/fs/ubifs/recovery.c @@ -442,7 +442,6 @@ static void clean_buf(const struct ubifs_info *c, void **buf, int lnum, { int empty_offs, pad_len; - lnum = lnum; dbg_rcvry("cleaning corruption at %d:%d", lnum, *offs); ubifs_assert(!(*offs & 7));