Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1364601

Re: [PATCH 0/5] drivers/mtd: make several functions return bool

From Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/5] drivers/mtd: make several functions return bool
Date 2016-03-25 09:50 +0100
Message-ID <rgvBn-7xe-1@gated-at.bofh.it> (permalink)
References <rgpZ0-3o9-1@gated-at.bofh.it> <rgq8G-3rj-3@gated-at.bofh.it> <rgtzA-6c1-9@gated-at.bofh.it> <rguOZ-70i-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Mar 25, 2016 at 08:57:59AM +0100, Richard Weinberger wrote:
> Am 25.03.2016 um 07:31 schrieb Yaowei Bai:
> > 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.
> 
> On which archs? And what exactly is the benefit?
> I agree that bool might be a better choice for new functions
> but here you're touching existing and working(!) code.
> The only outcome is git history pollution that makes git blame
> less efficient.

Working code doesn't mean perfect code. :-)

I still think this's a helpful change even though it's small, but
you make the decision to merge or drop it.

> 
> Thanks,
> //richard
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] drivers/mtd: make several functions return bool Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  [PATCH 1/5] drivers/mtd: mtd_is_partition can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  [PATCH 5/5] drivers/mtd/nand: nand_opcode_8bits can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  [PATCH 2/5] drivers/mtd: cfi_interleave_supported can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  [PATCH 4/5] drivers/mtd: mtd_nand_has_bch can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  [PATCH 3/5] drivers/mtd: map_bankwidth_supported can be boolean Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 03:50 +0100
  Re: [PATCH 0/5] drivers/mtd: make several functions return bool Dongsheng Yang <dongsheng.yang@easystack.cn> - 2016-03-25 04:00 +0100
    Re: [PATCH 0/5] drivers/mtd: make several functions return bool Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 07:40 +0100
      Re: [PATCH 0/5] drivers/mtd: make several functions return bool Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-03-25 09:00 +0100
        Re: [PATCH 0/5] drivers/mtd: make several functions return bool Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 09:50 +0100
      Re: [PATCH 0/5] drivers/mtd: make several functions return bool Richard Weinberger <richard@nod.at> - 2016-03-25 09:00 +0100
        Re: [PATCH 0/5] drivers/mtd: make several functions return bool Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 09:50 +0100
        Re: [PATCH 0/5] drivers/mtd: make several functions return bool Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-03-25 10:00 +0100
          Re: [PATCH 0/5] drivers/mtd: make several functions return bool Yaowei Bai <baiyaowei@cmss.chinamobile.com> - 2016-03-25 10:30 +0100

csiph-web