Message ID | 1441846543-10448-1-git-send-email-alexey.klimov@linaro.org |
---|---|
State | Accepted |
Commit | b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd |
Headers | show
Return-Path: <patchwork-forward+bncBCVM3DXCYMPBBHNKYOXQKGQEM7F5UZA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id F194122B05 for <linaro@patches.linaro.org>; Thu, 10 Sep 2015 00:55:58 +0000 (UTC) Received: by lagj9 with SMTP id j9sf9881372lag.0 for <linaro@patches.linaro.org>; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=2vq4pfVbgsshnNu0nnSFN7h8H6vxPNkZKsBVo29xU9M=; b=KOSDlvYZJ7OF172LycYguSeuJXXnasd4gPcCbSX6XZB3VMZIgK7uzKWhkVC7+TyNN0 NAtZQoybGp9YkmiYsGcidPRP7gQ4bYu3ia0MDAHt+USbRVh8EXMmE3k76bGF0nXzOOdV GyqJWZ7ag9OhdDXuEhRmJY87CIXG1+ipYiiQGb/AaJCu6XKOTRdA5nCrwrF+ZnvZKhbs 2934MTTG6hQqOI2sBbXiaD8/HOm+SyDoy3U/6RZUoJdXE0c4IXgVl4vDYv6qz6Xf1rSX 6fdjPbbp9CaNlPBWlXPQhT2eLCEY60japSoNu0keW3YJU+K+7D2QOlkhAD5Zqk/tgdyP +TyA== X-Gm-Message-State: ALoCoQki99fhOsowxkWf8XXofLRHkvP5bO89hM7Cgd8ZNmr47G12DnKg8I4D8FGNchGE3rbBFDj2 X-Received: by 10.180.83.101 with SMTP id p5mr45516wiy.2.1441846557744; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.75 with SMTP id dm11ls115372lac.102.gmail; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) X-Received: by 10.152.37.67 with SMTP id w3mr18246720laj.109.1441846557380; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id tk5si8608752lbb.14.2015.09.09.17.55.57 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 17:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbpo4 with SMTP id o4so14925800lbp.2 for <patchwork-forward@linaro.org>; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) X-Received: by 10.112.168.100 with SMTP id zv4mr32202110lbb.117.1441846557286; Wed, 09 Sep 2015 17:55:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp643409lbq; Wed, 9 Sep 2015 17:55:56 -0700 (PDT) X-Received: by 10.68.241.166 with SMTP id wj6mr77168377pbc.114.1441846556278; Wed, 09 Sep 2015 17:55:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pz5si14767105pab.219.2015.09.09.17.55.55; Wed, 09 Sep 2015 17:55:56 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754453AbbIJAzx (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Wed, 9 Sep 2015 20:55:53 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:34865 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752441AbbIJAzv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Sep 2015 20:55:51 -0400 Received: by lbpo4 with SMTP id o4so14924729lbp.2 for <linux-kernel@vger.kernel.org>; Wed, 09 Sep 2015 17:55:49 -0700 (PDT) X-Received: by 10.152.18.133 with SMTP id w5mr22276911lad.72.1441846549636; Wed, 09 Sep 2015 17:55:49 -0700 (PDT) Received: from localhost.localdomain ([46.39.50.164]) by smtp.gmail.com with ESMTPSA id f9sm2218492laa.35.2015.09.09.17.55.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 17:55:49 -0700 (PDT) From: Alexey Klimov <alexey.klimov@linaro.org> To: linux-mm@kvack.org, sjennings@variantweb.net Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, klimov.linux@gmail.com, yury.norov@gmail.com, Alexey Klimov <alexey.klimov@linaro.org> Subject: [PATCH] mm/zswap: remove unneeded initialization to NULL in zswap_entry_find_get Date: Thu, 10 Sep 2015 03:55:43 +0300 Message-Id: <1441846543-10448-1-git-send-email-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alexey.klimov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/mm/zswap.c b/mm/zswap.c index 48a1d08..4f2f965 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -325,7 +325,7 @@ static void zswap_entry_put(struct zswap_tree *tree, static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, pgoff_t offset) { - struct zswap_entry *entry = NULL; + struct zswap_entry *entry; entry = zswap_rb_search(root, offset); if (entry)
On the next line entry variable will be re-initialized so no need to init it with NULL. Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)