Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752957AbcCYImn (ORCPT ); Fri, 25 Mar 2016 04:42:43 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:4119 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570AbcCYImj (ORCPT ); Fri, 25 Mar 2016 04:42:39 -0400 X-RM-TRANSID: 2ee356f4f9fccf1-da020 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee256f4f9fcece-0c89d Date: Fri, 25 Mar 2016 16:42:16 +0800 From: Yaowei Bai To: Boris Brezillon Cc: Dongsheng Yang , dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] drivers/mtd: make several functions return bool Message-ID: <20160325084216.GB4526@yaowei-K42JY> References: <1458873715-3670-1-git-send-email-baiyaowei@cmss.chinamobile.com> <56F4A87B.5090100@easystack.cn> <20160325063153.GA3319@yaowei-K42JY> <20160325085155.7b4bea32@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160325085155.7b4bea32@bbrezillon> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1962 Lines: 65 On Fri, Mar 25, 2016 at 08:51:55AM +0100, Boris Brezillon wrote: > Hi Yao, > > On Fri, 25 Mar 2016 14:31:53 +0800 > Yaowei Bai wrote: > > > On Fri, Mar 25, 2016 at 10:54:51AM +0800, Dongsheng Yang wrote: > > > ccing: Brian and Richard > > > > > > Hi Yao, > > > Is that really necessary? I am not sure how much benefit we can > > > achieve from this change. > > > Could you explain more? > > > > Yes, according to these functions' name, a boolean return value is more > > suitable and matchable. > > > > Also personally think this change maybe benfit function's return value > > storage in the stack when called on certain architectures. > > At least be honest, and say this is for your patchcount statistics :P. > I'm fine taking the NAND related ones, but please, next time find > something more useful to submit. That's very nice of you, thanks. > > Best Regards, > > Boris > > > > > > > > > Yang > > > > > > On 03/25/2016 10:41 AM, Yaowei Bai wrote: > > > >This series only make several funcitons return bool to improve > > > >readability, no other funcitonal changes. > > > > > > > >Yaowei Bai (5): > > > > drivers/mtd: mtd_is_partition can be boolean > > > > drivers/mtd: cfi_interleave_supported can be boolean > > > > drivers/mtd: map_bankwidth_supported can be boolean > > > > drivers/mtd: mtd_nand_has_bch can be boolean > > > > drivers/mtd/nand: nand_opcode_8bits can be boolean > > > > > > > > drivers/mtd/mtdpart.c | 6 +++--- > > > > include/linux/mtd/cfi.h | 6 +++--- > > > > include/linux/mtd/map.h | 6 +++--- > > > > include/linux/mtd/nand.h | 6 +++--- > > > > include/linux/mtd/nand_bch.h | 4 ++-- > > > > include/linux/mtd/partitions.h | 2 +- > > > > 6 files changed, 15 insertions(+), 15 deletions(-) > > > > > > > > > > > > > > > -- > Boris Brezillon, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com