From patchwork Sun Feb 11 22:17:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 871822 X-Patchwork-Delegate: richard@nod.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="rfAqJQsq"; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Xr/Z+ryU"; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=agner.ch header.i=@agner.ch header.b="DfkZFwju"; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zfkBr54Pzz9t3F for ; Mon, 12 Feb 2018 09:35:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=P5n5/b/Gduze6sm0bpgpDzH1+c4eUpCIATnPsjouB68=; b=rfAqJQsqRNbkOa/JPXN1o8uG2M NOjhSKmdBWSTVdjlAW/u2FkSMgaxTPFZdZmxqtyqotQ93KRdXE/nBFaq6iCTN9pO4fULblm6E1miG zAGunOyzZlt4YOTBmgyhrN+3Pd/o11BRRWuIz7ZXogz7rJHEc42AQU+ks5n+XWqc6Meeyx2AwIVyA tfsPaF+JiraS6/SVEyqEz0jZw/6FX5e6T+K2DGruI7wX+XVchdM23Ah37O7p1bHSICzw63PZDJmNd 7dnt1mJkz2ckVrKf7UlyS/sdsy1R3ZTDLoutz7PZbt1NMspQlWGsN3euOA8/8VCexI4F0nIWqdEWz wB9L5ssA==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1el0Cv-0008JH-Fl for incoming@patchwork.ozlabs.org; Sun, 11 Feb 2018 22:34:50 +0000 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=P5n5/b/Gduze6sm0bpgpDzH1+c4eUpCIATnPsjouB68=; b=Xr/ Z+ryUvCD31Nps82Q7/8EjH65rjWb9weZlz5pY5GbfTlwwV30c1BZMAeL0GbHBooR20rgIEAPHPxx0 MkLlkkbHZUEz8YMinr1I6ZC+XTeOCuhWv3X4ytxn9OQAzS/wVzW/874Mh8wXdqYXOpUWTP40/BG3s +Wg5EZ+4G8Zm23UUIvr0RkWaFCL1V9Mh0kHgAMd5bVE9c4s7h+VYIawMrSXEHHxU36G+kq+j6O4pn NK/E1Tl68ZfZnLSMOinUkq6WlukEu5wMc6vkPT+mBi5lFTZM3r8tmZJNq29esty6sRZm7m7MAIoYg zNU7f5i6W1rESm6sbxjB8dRudSUii+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ekzwb-0003qL-Jl; Sun, 11 Feb 2018 22:17:57 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekzwY-0003pd-7Q for linux-mtd@lists.infradead.org; Sun, 11 Feb 2018 22:17:55 +0000 Received: from trochilidae.lan (unknown [IPv6:2001:1620:c6e::127]) by mail.kmu-office.ch (Postfix) with ESMTPSA id B6A115C076F; Sun, 11 Feb 2018 23:10:09 +0100 (CET) From: Stefan Agner To: richard@nod.at, dedekind1@gmail.com, adrian.hunter@intel.com Subject: [PATCH] UBIFS: remove unnecessary assignment Date: Sun, 11 Feb 2018 23:17:36 +0100 Message-Id: <20180211221736.25453-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1518387009; bh=SwHlO5aJ4CFsd9PNAytVMhuq0Gm3uK/sA/f1p+LnW3s=; h=From:To:Cc:Subject:Date:Message-Id; b=DfkZFwjuHlIPp28lNuqK5NjVafM/yG16CF1/as+ct83dI7RN5Tr48Gf4RwfvuBDbs7dGiP18hq+KsxA7PhlWSekHTGK2rDzAr5j8E97niPymkyTfGNrTaRjSKBHYpF6NCvDXrh+dK9lvSJjY9RQtpU8d+7+vn39XvjIinAalQ4A= X-Spam-Note: CRM114 invocation failed 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_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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. This fixes a warning shown when using clang: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] Signed-off-by: Stefan Agner --- fs/ubifs/scan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index aab87340d3de..16f03d9929e5 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c @@ -175,7 +175,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, int lnum, int offs) { - lnum = lnum; dbg_scan("stop scanning LEB %d at offset %d", lnum, offs); ubifs_assert(offs % c->min_io_size == 0);