Message ID | 20180714161124.3923-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4DC936028E for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 14 Jul 2018 16:11:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BB1628B44 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 14 Jul 2018 16:11:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EC1328B58; Sat, 14 Jul 2018 16:11:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89D9628B44 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 14 Jul 2018 16:11:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 975996B0005; Sat, 14 Jul 2018 12:11:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8FD806B0006; Sat, 14 Jul 2018 12:11:28 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C6256B0007; Sat, 14 Jul 2018 12:11:28 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 343D36B0005 for <linux-mm@kvack.org>; Sat, 14 Jul 2018 12:11:28 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id w21-v6so7915922wmc.4 for <linux-mm@kvack.org>; Sat, 14 Jul 2018 09:11:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; bh=zrjRkyrYqLBHdwDm0dEPunV0PRmyLbpShmikfyp1q20=; b=HS1uMLf1XjB3pDsdhWej300VgUVik1klY0x9RNJ8jOv3ZLDBSft6D1YogaanaHfQGC gOToVPKcvn1gRu66QTyRC4y2fDmybl1QvN0xvTRMP1sxKRQ1cgLiwdgfKF0YTNa/2e7p 9i+9fnKqHWA5Cu+XmY3IXSwBa7XnJ3YdCuOHao9pdCNsx8Wl8+H9uPmSsKJPyf5cCIjp ZdlGu4Z/QcuVc56b1ReNSdjzo2/jK515jDKBB+wPUnF7rDWDDfg5AFsPXqTZioR4BPnU r0Mi8/IrHGEnZ+qFD2kKzrMcOPtf2OOwPvZXCH6loEPLHqxYonGmV1k2tR0+wwINPuCQ 6gkQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of colin.king@canonical.com designates 91.189.89.112 as permitted sender) smtp.mailfrom=colin.king@canonical.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com X-Gm-Message-State: AOUpUlHUcjw2x0zGJglRotxSZOvkMclScObguV69ETipQ6XK6rCa3W4Y 1t4siwbKG8gNPLD+lVjUeqtnzzxD+xc8AeZb9+quRztipjl7FEFN3dmQlGmxi7aJPaeLjOogatt wXEJ8D6b9ZHl24H2Conr0OXQkQWo7ajpsJF73/yPta6MwZK0OJI+6fvG4/n3Bs7bcQA== X-Received: by 2002:a1c:f03:: with SMTP id 3-v6mr6233459wmp.129.1531584687725; Sat, 14 Jul 2018 09:11:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcm0kLLXwwoIZGekePIGrdgBUIM83uM25E0AYy3AU0hwgKd8pTs5NEXYNkPLScBuN4ivRqP X-Received: by 2002:a1c:f03:: with SMTP id 3-v6mr6233439wmp.129.1531584686919; Sat, 14 Jul 2018 09:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531584686; cv=none; d=google.com; s=arc-20160816; b=AF/0mP6xpmbDX1qIjp2jibX+F2G2d4ZGX5yNihBpczRTNMKN2DIHSeZ3cYu7fHr7Sw WjeF8sxlTqgmDFpXBpzutscmDpBODln2tViH4M1AAtgluub8ObbKtx6Wy8qCUgcO4r0t m59G+W1F+zPZjIGWc6OrctVnglYJcUuwuYrXw/iSBe4JHR2Fs7sU3b+K64ueSYQhYY3r yVu7R+bTkshJwezrg+o2KFLULRLSFsF4IH4G6KtnG4gXFYeVmaOxn/bFNzYMuo96RKp3 /tJowqieXOu0XvYRu+M2ktqqTYQ0WV79fDK/59x2ryviIxrWCSbbQGoPXFqMMPlJ3zKy KO3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=zrjRkyrYqLBHdwDm0dEPunV0PRmyLbpShmikfyp1q20=; b=vkf/FEc1bT3MJOWtH0Vuj9aNDEwgQf48KOEATukfR4wzwRi61clsv01m8rfLtLJ/hR 6VWj7ZXBiZUD4IAZhni5S7yOeNgm7DeaP+yBo4ma9k92i9/GbWTGl4EomnJLNH0ns4O1 i/Nr2dDEqeJVdjevBgWB1tcLpYNI05eAAVHRnFWgsB7FI2iBe+1+ul3UCA5tHdu5Uj8Q GMoVCbZtlI4srVWQ5ovaPaMi/mCExbRaYO0pvmZjKmKfNfVDDiAqg77hKgTvpC8xOSdP 1POny2FLwbhPetkaLJMPiPOTaddEdr0EG+OnbE/vltEgbhKvZo6ZGUSKVd8uNM5Wep01 w/GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of colin.king@canonical.com designates 91.189.89.112 as permitted sender) smtp.mailfrom=colin.king@canonical.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from youngberry.canonical.com (youngberry.canonical.com. [91.189.89.112]) by mx.google.com with ESMTPS id n1-v6si19568804wrr.373.2018.07.14.09.11.26 for <linux-mm@kvack.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 14 Jul 2018 09:11:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of colin.king@canonical.com designates 91.189.89.112 as permitted sender) client-ip=91.189.89.112; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of colin.king@canonical.com designates 91.189.89.112 as permitted sender) smtp.mailfrom=colin.king@canonical.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from <colin.king@canonical.com>) id 1feN8o-0006my-2e; Sat, 14 Jul 2018 16:11:26 +0000 From: Colin King <colin.king@canonical.com> To: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= <jglisse@redhat.com>, linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/hmm.c: remove redundant variables align_start and align_end Date: Sat, 14 Jul 2018 17:11:24 +0100 Message-Id: <20180714161124.3923-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/hmm.c b/mm/hmm.c index caf9df27599e..76e7a058b32f 100644 --- a/mm/hmm.c +++ b/mm/hmm.c @@ -973,10 +973,7 @@ static RADIX_TREE(hmm_devmem_radix, GFP_KERNEL); static void hmm_devmem_radix_release(struct resource *resource) { - resource_size_t key, align_start, align_size; - - align_start = resource->start & ~(PA_SECTION_SIZE - 1); - align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE); + resource_size_t key; mutex_lock(&hmm_devmem_lock); for (key = resource->start;