Re: [PATCH] fs/binfmt_elf_fdpic: remove redundant condition check in writenote

From: Al Viro
Date: Wed Aug 01 2018 - 23:05:26 EST


On Thu, Aug 02, 2018 at 10:04:34AM +0800, zhong jiang wrote:
> It is unncessary to use double test for a expression. so just
> remove one of them.

... except when something in that expression might have side effects,
that is.