Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp716768ybf; Sat, 29 Feb 2020 14:09:29 -0800 (PST) X-Google-Smtp-Source: APXvYqx4iOq8WSuCfA+v/byCmrbGK1vLjotZ/nD7xdk8PM+d8Ky0f61sLYLydmLRAdfZV8aS25Qx X-Received: by 2002:a9d:7c81:: with SMTP id q1mr7869186otn.112.1583014169617; Sat, 29 Feb 2020 14:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583014169; cv=none; d=google.com; s=arc-20160816; b=sqsI8LPfhzjSO2BRDzF14aOqVkch2XIsm7hrRAhaZdZm7ReMkKc4N8G1lpRORmvrx6 VJ3x0HoEYbKw7w9e7mAIaMfNL0BDLBFocABkVOSjGW+b7nnqIa1tuBPoMe+FD53DlRZz xbqi5bFoeV1GFwlbovvJ9KZyS36QemT0SA57HQfO/SSjdLFDtnCfPrEnd0gpYmmZWMdA ZZkA94SYfe/7LK1wVar54NxzO0ky0s17PP15yPMsW3dk/nlFHZ9Yg/b4Rr/jLIr4Qt2r lgAgohvsWHOh42hELWsqB9kP07QHDOiBqdcN1yafeXgkZ1ePgXAhZUVTsOjzjOYfi+FP KXaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=6uy93UxgHpUDpR9Xr7xOhmfEHcxRhT77RQRFOSS/Ayo=; b=MUZCBkpMW9JJRWZIOai+6LdTL8lLesLgzxb583XPLO52OYHuH7ICertj8eZu/YViAM HsZQI0MZaVLDX+2Njziz4N6Z7Uzns3j6FTf+eEXv1hrvj0K6dg2ci22yo3tjEnMRohUO l4M0gPArR876lu0cbYhEZF+4i57+gMI3036XumZ4zUp8rkGlmmtRThNIGo7LRU5R/dsd rKoo/EVbUAp7CWyKrq11iH05htd2797HADO5/X69VpsZXFw3aRaMVyxif9L9uqOIi/sl RRF8KQ8Jr7qZ3005d5AbRfghNV4rogdX08GHj77dWBVYEiSFJq1rB3qlZ2Ri2RlFTIcl FK1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ei3+4eUi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j80si271610oib.144.2020.02.29.14.09.18; Sat, 29 Feb 2020 14:09:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ei3+4eUi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727407AbgB2VlS (ORCPT + 99 others); Sat, 29 Feb 2020 16:41:18 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40632 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbgB2VlR (ORCPT ); Sat, 29 Feb 2020 16:41:17 -0500 Received: by mail-lf1-f68.google.com with SMTP id c23so4801510lfi.7 for ; Sat, 29 Feb 2020 13:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6uy93UxgHpUDpR9Xr7xOhmfEHcxRhT77RQRFOSS/Ayo=; b=ei3+4eUi1I/cTlQjIc27NVqUqXgeWkP9L6Jta5Z5va+asPyUqRNa95neDp7GXeB1Ep /upc7Kq3R0CGgZJfTGh46fQhWWWAZY1VrIy74ViGrjQ5e0ivM4j8Dw9Q4qX/caIuGAXT Pr9Y0lUBXj7nduyUqCuEAKm3U081Mj62nrRh4WvXQmcV/DdeedgbdBNyifFuAleagq7s 4yKzf5RC2D42gHRt0WuUsze0PT3w44ZHgUwXMhsnHtMh5+1YtBMS8332soUMByTJfxFq woa1qxesG0HdH4SdfEPyMnjMVCrUI1IaXZX7sanyRt6aWYRh8GpGdkhycgKZHBSI8HYu BhTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6uy93UxgHpUDpR9Xr7xOhmfEHcxRhT77RQRFOSS/Ayo=; b=B9aRyPPby7zlsUWalrWQ7cJexcOTMInFxJiO4PbgAupV0p0ifPEizzku1VA7esutjk MorH/jlXkxONl5Kq6M17wOLtqMxccFfWQkQWobTgXhfve9GQeuAu6Tr+ACOEmlfEab9r zQHsoLbzQzf5uf1wMQrZ9uMiN/LxVxSJanXz4lgW43C+fnFgUSyn7edPElGW6glBywsV XFWxBYKL8X7dJAXzI2r1mRn1tdeZgzeNh1OZhnWwZo87Lbdu98AU12aflA/VzPoFU6aa PrmcBLbadRqDHd+YfeHM/E9WVfE+V7LCWmFg9ByZS6Lnw1ZtJ8YUvnY60r63uiti2Gkv DZhw== X-Gm-Message-State: ANhLgQ0Z7z4iRFPpAJ+Q1cXdj6h1oecjzoblKnH9p0oZbjZ3PSfWx2TE UqzNzsv2sM1vYAK17p5YIws+wvKSUPw= X-Received: by 2002:ac2:4307:: with SMTP id l7mr6033407lfh.37.1583012475035; Sat, 29 Feb 2020 13:41:15 -0800 (PST) Received: from localhost.localdomain (188.146.100.83.nat.umts.dynamic.t-mobile.pl. [188.146.100.83]) by smtp.gmail.com with ESMTPSA id i67sm7976242lfd.38.2020.02.29.13.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Feb 2020 13:41:14 -0800 (PST) From: mateusznosek0@gmail.com To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Mateusz Nosek , akpm@linux-foundation.org Subject: [PATCH] mm/vmscan.c: Clean code by removing unnecessary assignment Date: Sat, 29 Feb 2020 22:40:22 +0100 Message-Id: <20200229214022.11853-1-mateusznosek0@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mateusz Nosek Previously 0 was assigned to variable 'lruvec_size', but the variable was never read later. So the assignment can be removed. Signed-off-by: Mateusz Nosek --- mm/vmscan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index f14c8c6069a6..a605ff36f126 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2427,10 +2427,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, case SCAN_FILE: case SCAN_ANON: /* Scan one type exclusively */ - if ((scan_balance == SCAN_FILE) != file) { - lruvec_size = 0; + if ((scan_balance == SCAN_FILE) != file) scan = 0; - } break; default: /* Look ma, no brain */ -- 2.17.1