Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp272001ybx; Wed, 30 Oct 2019 14:58:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5Dr5vtjKKuEhVs69Uo98APmWpj4DU1ufUitDldipY5dJuJFi+lUUGTCTshGcOczAYgjGj X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr439452ejr.249.1572472702714; Wed, 30 Oct 2019 14:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572472702; cv=none; d=google.com; s=arc-20160816; b=MiJu0bPFSuvKcaGenvTGwZk5m4MY3EVHnp1ZhHCiGdCxvc+rHxKRFYmJff7xhJROsm uXsW066cf3ye8TYwiyy9PTDbb+aZVk1wFEx3N1zedbP+0hMCZCb42eaJp7iI+EXvVB1g n0XiNasciPmLySIuLdJAbtqnkQ1C+SrwbLF5vu9+5uEACMcida0zZU6Id9RB+K92jMQS M+bWsazv/AbceRBkTkJAJVJZe4GqxGnplgE8oNuJSPWZegNJrRDWYDBibpF0ZEnU9ZJ6 t0dv2C9kL9pW7Qc1r48RJVKL2IQ5Aqt5ZUCu+NPnxcO5kaLa5tLpBnfQ5VZAZstFQLgQ FQ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=41dVk3HlaKb/dFjB8UnWPeItSsHUeTbp2B9Q6WI0tdI=; b=cmz591VZvT5JK/5fXLEjjIH5PibI7+Hifb3uNlQEaQHXfFXnz35h/7zX9dQXC6Rdmk 16cfLyxGwGyQ+jQy+3ali5aDF15mLJty306C2mLKidWfJuAv7w10toI05/ytgvPNOr1h kRlrWIBqLtV1emDxGoEQdMaGWJ2MVcM0h9nfpT0VK850QuceVcijrolLdZ4qQs2FQ/p2 3SxLeGlKQuclaHawa31LBs1NneraR3AIjXfFkJRy0oKWHqCnR7qoGp9lhmhPacg+6D3C UXCwf0hPuQ4K180P0Q9BxdxwbIHkbJIuoq/i0RWaEAorCrYHGXZsJQuL1/TqQMrZk7i9 /3zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=jbIvggOI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b30si2484409edc.320.2019.10.30.14.57.59; Wed, 30 Oct 2019 14:58:22 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=jbIvggOI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727391AbfJ3VyI (ORCPT + 99 others); Wed, 30 Oct 2019 17:54:08 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39635 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbfJ3VyI (ORCPT ); Wed, 30 Oct 2019 17:54:08 -0400 Received: by mail-qk1-f196.google.com with SMTP id 15so4543561qkh.6 for ; Wed, 30 Oct 2019 14:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=41dVk3HlaKb/dFjB8UnWPeItSsHUeTbp2B9Q6WI0tdI=; b=jbIvggOIeT93+HYPaTBumtry7oeGFtRGRR/RJZ//h55U0bXJOWNKOfcHnZsH8nOSWl ijjgihsoEFCZxaBjB/0RnqYBI1yXeuE4KsNREA7rDgbLcUukvlHQ7BiuLh8SnlAIY1Zj 2teTt4r/7ljvLvpSxEbw21SmAMMe7xfYuqcf+z+bLbkEaCoF5KcFLv+vipKztqVqk2UR Fi0fMP14X7hf0Gl/7+UWABKMNrv18W5BFb/b9DVRJLD0CPzz44FiXlPDuwKMfz7KUOZg uGZIN1nJUZM0Wxck74k4CocTGv72D/HSth4B9ilouuvO2SdGzq1j3ykuB6nPpkCaeT/l n6UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=41dVk3HlaKb/dFjB8UnWPeItSsHUeTbp2B9Q6WI0tdI=; b=XN61Q7vFRT62Z9xD85amElqQl6c6PD8qks2rBWGxee/E7NmUpHcsItAew7aj80vM8D T0p5r3udeFGZb82uWQEUIZjeIaTEtUsX8NPfeHA92zQCuRT30BEobKqBziQEFoggtssw 34YB+PTFgeCxJjwMmotu8jkjqoshxP5kCyQ1iC6GRwmQcPPcvge+JiwEOsP2Eo3cToVV D7RsZyJj+rKcjghQsFl6kX515xOXph2suuslfJ73MLCWLvODeP1VLtLr7uMLoU7D39ZC sF950zX6/l1/QMcvy/NhIl8HxaTvbuhgTUDaig1rAzgl8Mn/AHYJs9BdNUhtFVymlXaY 1Hcg== X-Gm-Message-State: APjAAAU39sSrxQs50/98vj7lg/wtUjYED93TbGAGapVKLk2zSD16fO+5 dCKd//OoQwnGcN0d8GztEFwG4w== X-Received: by 2002:a37:4cd5:: with SMTP id z204mr2102084qka.153.1572472447368; Wed, 30 Oct 2019 14:54:07 -0700 (PDT) Received: from ?IPv6:2600:1000:b063:e143:9455:99a5:c2db:fc9c? ([2600:1000:b063:e143:9455:99a5:c2db:fc9c]) by smtp.gmail.com with ESMTPSA id n62sm769982qkn.47.2019.10.30.14.54.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Oct 2019 14:54:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2] nvdimm/btt: fix variable 'rc' set but not used Date: Wed, 30 Oct 2019 17:54:05 -0400 Message-Id: <5E00893B-D36C-446F-9E71-54FB32772DA0@lca.pw> References: <03cacc16f2fcd7cc74cf15c57070c78e73206e68.camel@intel.com> Cc: "Williams, Dan J" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "Jiang, Dave" , "Busch, Keith" , "Weiny, Ira" In-Reply-To: <03cacc16f2fcd7cc74cf15c57070c78e73206e68.camel@intel.com> To: "Verma, Vishal L" X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 30, 2019, at 5:38 PM, Verma, Vishal L wr= ote: >=20 > Good find! Since we're not really using rc later, we should just > simplify this to: >=20 > if (btt_map_write(...)) > dev_warn_ratelimited(...) > goto out_rtt; Ah, I thought about printing the rc as well at first, but it seems only retu= rn -EIO for errors, so I agree with you.=