Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4425434ybg; Tue, 29 Oct 2019 07:01:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlw/HFdBn6PEQRSHRpnUYR0ySjWxy3Q3FifajBx/SXaCic07yKmqmOSPpaqPTj4JaP8q4E X-Received: by 2002:a05:6402:1816:: with SMTP id g22mr25950385edy.76.1572357715700; Tue, 29 Oct 2019 07:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572357715; cv=none; d=google.com; s=arc-20160816; b=WiYZ4JlFj4/jGaZFNANBzsgiNju9fyKreg+6YqYg7MI8ES3nOy/QV7YHjnwsXf820g NfqTGZimuwjx4en95PV6VgepiX5WMt7km0MkYcFSirkYaL0JIE5vwlivCwhYANhHCAW+ XtWntIjhN6qiYend3KfuwfYbv2gfDTESgeFjHaopmpz6xXTcJX0g59m0F3IJEwjdsiBd kMEI8EgyPaUnoHPQM7NuJCdydql6WuxrQVyXwH1jZGM3/yvuoOGcHt8yAS6kDvAoLQci PzdxVhl2R5TEwcmlNjqcNUlWHV0WclkLRUgyw4RASutdMX9tzKiEzaoyvcrkgZrhWcU0 mprQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3RWz9l3/B7SltQRtqxThazj72fG6HLPCrRBSHamwG2Y=; b=Hy1wW65gTwWtvpkeBGTGbaT3SOKgC93xZ//9H3QphYCJOxFzu3Z8PAjtX/GukDcchB y48fjT2MP8tHqYAAh6MEzqG92IIQ57Sdh1lPlbPaWavSfakYa3mdgukmr7OLjlcGo3he FhK/D9x7rgjsKBE8zOt+vWOLE07nuEPmHurTx6X1+bs3U8T4O3tTXjKA/gOCbQg4yQlt lGqjw5SR0a7ou9O3AeAKTvs8zwTQxq//lJzobyciVlaLA24Fkq97CT+zG6cQyf1DzAZ+ aJCZVhjk2vJq52EzRGDkZ9jgEZzejhcybYwB2O4LMWBub9+hQWUTXlIRcHy3wM3SQf29 vUtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gi6vvKlZ; 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 x4si8430678eju.197.2019.10.29.07.01.30; Tue, 29 Oct 2019 07:01:55 -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=@gmail.com header.s=20161025 header.b=gi6vvKlZ; 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 S2388712AbfJ2OAM (ORCPT + 99 others); Tue, 29 Oct 2019 10:00:12 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40988 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfJ2OAM (ORCPT ); Tue, 29 Oct 2019 10:00:12 -0400 Received: by mail-pg1-f195.google.com with SMTP id l3so9641480pgr.8 for ; Tue, 29 Oct 2019 07:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3RWz9l3/B7SltQRtqxThazj72fG6HLPCrRBSHamwG2Y=; b=gi6vvKlZNFvT2TfBgGbjsE0fNq7TOPfVljNx5UiQBpHr53URR+V1J4LJgv3Zh00tUR 2VJgWOGXtIhFvYiDZB0bCUTNEMfbclaL7v/Ca/Rl7FOH34LPgAU7BBL6fuxAnGAEwavE n7O1KSsQufR0DXWwEpfFZMF/yq4pIWE5iwz5gFtm8EdiCRQmRXIN+eyl24ufo4o8VPqW ZZEl2C2Sr3fOXS4AChtJ7SwEI+J6RK8qizGITJ9dPNlzX3fMOSrKIBIz5PUUlFkrp3Wz NEjjVVfEe+EfNvi0utyx+i6B4rTFVAJ+eEFT0VPASxlZTciv62Exr7hAViUAvAjoQvr4 eulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3RWz9l3/B7SltQRtqxThazj72fG6HLPCrRBSHamwG2Y=; b=EIq9Knrx6uigjN6W8UTpRwiyouzWM1YRI+QaiV9MH36yifm14K4uP4zfHIyYSMKUX/ OQU3r3KXpIOrRYqRXWgdWGh230h2RR3PCtd+GuBIO54ScRqVeC8WTgyEW07M79Q5Hglt joJx4vCkCR6/fsHyE2/KghK2OuH/VuCosMcXr47RDsvNhRbisK+KdhoUEkTSdrQu76MD xZu+zevS99f5Ikr5a22fibNqU0C680NJUmuezEy1k13p0TsPvUYUgNxdlIBk95wKGldR eRxhuOP3YMH71vApS53MOm/WWWJzp6SiiJgaaDANNi+MyA+TkGidA7UUl0/JggkeADfJ EdKw== X-Gm-Message-State: APjAAAVZ5+UkqJLUchOi4Nnd9SHi/LnLVtfZlYb0VjALoow2h+3TX5WT IVT+HFLt5tgO0e9M6pw+h+4= X-Received: by 2002:a65:4247:: with SMTP id d7mr27474764pgq.107.1572357611059; Tue, 29 Oct 2019 07:00:11 -0700 (PDT) Received: from saurav ([117.232.226.35]) by smtp.gmail.com with ESMTPSA id y129sm15557518pgb.28.2019.10.29.07.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 07:00:10 -0700 (PDT) Date: Tue, 29 Oct 2019 19:30:02 +0530 From: SAURAV GIREPUNJE To: Russell King - ARM Linux admin Cc: joern@lazybastard.org, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] mtd: devices: phram.c: Fix use true/false for bool type Message-ID: <20191029140002.GB4943@saurav> References: <20191029032142.GA6758@saurav> <20191029091433.GG25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191029091433.GG25745@shell.armlinux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 09:14:33AM +0000, Russell King - ARM Linux admin wrote: > On Tue, Oct 29, 2019 at 08:51:42AM +0530, Saurav Girepunje wrote: > > Return type for security_extensions_enabled() is bool > > so use true/false. > > This doesn't seem to bear any resemblence to the subject line. > > > Signed-off-by: Saurav Girepunje > > --- > > arch/arm/mm/nommu.c | 2 +- > > drivers/mtd/devices/phram.c | 11 +++++------ > > 2 files changed, 6 insertions(+), 7 deletions(-) > > > > diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c > > index 24ecf8d30a1e..1fed74f93c66 100644 > > --- a/arch/arm/mm/nommu.c > > +++ b/arch/arm/mm/nommu.c > > @@ -56,7 +56,7 @@ static inline bool security_extensions_enabled(void) > > if ((read_cpuid_id() & 0x000f0000) == 0x000f0000) > > return cpuid_feature_extract(CPUID_EXT_PFR1, 4) || > > cpuid_feature_extract(CPUID_EXT_PFR1, 20); > > - return 0; > > + return true; > > This isn't explained in the commit. You explain why it should return > true or false, but you don't explain why converting this from returning > 0, aka false, to returning true is necessary. > > > } > > > > unsigned long setup_vectors_base(void) > > diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c > > index 86ae13b756b5..931e5c2481b5 100644 > > --- a/drivers/mtd/devices/phram.c > > +++ b/drivers/mtd/devices/phram.c > > @@ -239,27 +239,26 @@ static int phram_setup(const char *val) > > > > ret = parse_name(&name, token[0]); > > if (ret) > > - goto exit; > > + return ret; > > > > ret = parse_num64(&start, token[1]); > > if (ret) { > > + kfree(name); > > parse_err("illegal start address\n"); > > - goto parse_err; > > } > > > > ret = parse_num64(&len, token[2]); > > if (ret) { > > + kfree(name); > > parse_err("illegal device length\n"); > > - goto parse_err; > > } > > > > ret = register_device(name, start, len); > > if (!ret) > > pr_info("%s device: %#llx at %#llx\n", name, len, start); > > + else > > + kfree(name); > > > > -parse_err: > > - kfree(name); > > -exit: > > return ret; > > } > > At least this partially matches the subject line but it looks unrelated > to the other changes. > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up > According to speedtest.net: 11.9Mbps down 500kbps up Please igonre this patch. Suppose to send for only one file nommu.c. I have seperated and submitted the patch for chnages in file phram.c and nommu.c. Thanks for review ... :-)