Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbbHCFKt (ORCPT ); Mon, 3 Aug 2015 01:10:49 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:46182 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbbHCFKq (ORCPT ); Mon, 3 Aug 2015 01:10:46 -0400 X-AuditID: cbfee68f-f793b6d000005f66-7c-55bef7d4c6ee Date: Mon, 03 Aug 2015 05:10:44 +0000 (GMT) From: MyungJoo Ham Subject: Re: [PATCH 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL) To: Viresh Kumar , "akpm@linux-foundation.org" Cc: "linaro-kernel@lists.linaro.org" , "linux-kernel@vger.kernel.org" , =?utf-8?Q?=EB=B0=95=EA=B2=BD=EB=AF=BC?= , "open list:DEVICE FREQUENCY (DEVFREQ)" Reply-to: myungjoo.ham@samsung.com MIME-version: 1.0 X-MTR: 20150803050123712@myungjoo.ham Msgkey: 20150803050123712@myungjoo.ham X-EPLocale: ko_KR.utf-8 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150803050123712@myungjoo.ham X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=utf-8 MIME-version: 1.0 Message-id: <1641980442.342501438578642999.JavaMail.weblogic@epmlwas06d> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsWyRsSkWPfK932hBuc7NCwu75rD5sDo8XmT XABjFJdNSmpOZllqkb5dAlfGssWLGAtesFacOfKRtYHxAmsXIyeHkIC6xKIlJ9lAbAkBE4kV 77+zQNhiEhfurQeKcwHVLGWU6Hy7kR2maM716awQiTmMEjPvbmEESbAIqEjsm7MMqJuDg01A T2Lm52SQsLBAkMS0ZSvAhooIpEvMmD4frJxZYAq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hhrClJc7P2sAIc/Pi74+h4vwSx27vYIKwBSSmnjkIVaMlsbfjDlQNn8SahW9ZYOp3nVrO DLPr/pa5UL0SEltbnrBC/KIoMaX7ITvI68wCmhLrd+mje4VXwEPi1t057BMYZWchSc1C0j0L oRtZyQJGllWMoqkFyQXFSekVRnrFibnFpXnpesn5uZsYwSno2aIdjP/OWx9iFOBgVOLhnTFv X6gQa2JZcWXuIUYJDmYlEd4DN4FCvCmJlVWpRfnxRaU5qcWHGE2BUTaRWUo0OR+YHvNK4g2N jU3MTEwtTSwMTM2VxHn/n8sNERJITyxJzU5NLUgtgulj4uCUamBk/sl/VK7Pw08/znjSkQ01 s2+lZgdN3XgjadvjVNbDHG117C/LFzmXl3x4kmh1pcDnZNNvpwx934XHp72bznH+f49B+ooY Qa/utZ1vmh2LGGTXlM1M3mPnt//LqhlMHx83bi0pz78k5hh1/KHTjbgS81PJp46pWzo0/rNc 6ppo8pd1YWOjkokSS3FGoqEWc1FxIgDaVnOrVwMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t735AsYY023472 Content-Length: 680 Lines: 21 > 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) Cheers, MyungJoo ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?