Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752749AbbHCFsF (ORCPT ); Mon, 3 Aug 2015 01:48:05 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33719 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbbHCFsD (ORCPT ); Mon, 3 Aug 2015 01:48:03 -0400 Date: Mon, 3 Aug 2015 11:17:58 +0530 From: Viresh Kumar To: MyungJoo Ham Cc: "akpm@linux-foundation.org" , "linaro-kernel@lists.linaro.org" , "linux-kernel@vger.kernel.org" , =?utf-8?B?67CV6rK966+8?= , "open list:DEVICE FREQUENCY (DEVFREQ)" Subject: Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL) Message-ID: <20150803054758.GA16589@linux> References: <1641980442.342501438578642999.JavaMail.weblogic@epmlwas06d> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1641980442.342501438578642999.JavaMail.weblogic@epmlwas06d> 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: 936 Lines: 28 On 03-08-15, 05:10, MyungJoo Ham wrote: > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > > is no need to do that again from its callers. Drop it. > > > > Signed-off-by: Viresh Kumar > > @ from include/linux/err.h > #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) > ... > static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) > { > return !ptr || IS_ERR_VALUE((unsigned long)ptr); > } > > "!ptr" appears not covered with IS_ERR_OR_NULL. > (only the IS_ERR part seems covered) Right, the first patch of the series has fixed that. http://permalink.gmane.org/gmane.linux.kernel/2009151 -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/