From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965897Ab2DLTbw (ORCPT ); Thu, 12 Apr 2012 15:31:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49085 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934514Ab2DLTbt (ORCPT ); Thu, 12 Apr 2012 15:31:49 -0400 Date: Thu, 12 Apr 2012 12:31:47 -0700 From: Andrew Morton To: Hugh Dickins Cc: KOSAKI Motohiro , Alexey Dobriyan , Cong Wang , linux-kernel@vger.kernel.org, Oleg Nesterov , Al Viro , Vasiliy Kulikov , David Rientjes , KOSAKI Motohiro , Naoya Horiguchi , Siddhesh Poyarekar Subject: Re: [PATCH 6/6] proc: use IS_ERR_OR_NULL() Message-Id: <20120412123147.1ac34ae0.akpm@linux-foundation.org> In-Reply-To: References: <1334123976-11681-1-git-send-email-xiyou.wangcong@gmail.com> <1334123976-11681-6-git-send-email-xiyou.wangcong@gmail.com> <4F872322.8040909@gmail.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Apr 2012 12:26:51 -0700 (PDT) Hugh Dickins wrote: > On Thu, 12 Apr 2012, KOSAKI Motohiro wrote: > > (4/12/12 9:23 AM), Alexey Dobriyan wrote: > > > On Wed, Apr 11, 2012 at 8:59 AM, Cong Wang > > > wrote: > > > > - if (mm&& !IS_ERR(mm)) { > > > > + if (!IS_ERR_OR_NULL(mm)) { > > > > > > I personally find original code way more readable. > > > > personally, me too. but new one is also acceptable to me. > > That now makes 4 votes that it's not an improvement, with no dissent > (unless akpm's + proc-use-is_err_or_null.patch added to -mm tree > should be counted as dissent): let's drop this patch. I think it's OK. IS_ERR_OR_NULL encapsulates the concept "something went wrong". Not that I'm particularly passionate about it.