Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2951148ybi; Mon, 17 Jun 2019 13:22:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz12e++O/4rfzyO8LvztlAe4FkrZq0qeoRgVtFvatpd+6hj5I9D0ZIoXPklYJcyGpOSMZYo X-Received: by 2002:a17:902:341:: with SMTP id 59mr56146664pld.20.1560802921413; Mon, 17 Jun 2019 13:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560802921; cv=none; d=google.com; s=arc-20160816; b=hu4enDzAkoCgcEHYgivutKLDVcNmnbQUa+QPKFER03Yg5gQlLLUrmsDDLrFLWrtMX4 wIeKiMv2SeBXq7uDZ3vRlq1917iw4ErvCZ2jXjBBMPx1S1Ccq8ObkhwLOq0gtD2DUcpf sFP3J+iXJgX+GujLy/+m/BBObvrjZBI+rZysivUSCA3YVAcJucSyVP/bQkn30PLiUp5/ AKEkm7R0sAYhXMtIO3ghxtWF/Aaw82B2RGEgYR9TyfVsxt4cs+n24uELDipFuP9VsOJf Dph5HEQGEfTw4kMS6Ab1TI/TC5d7mV3t2K5y0URBH/oTqJtvwN4LzDhDMddk0VPf3od3 iynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=5ZCtbNG52kzhgyca81LmWZUU1X9zTriycVEfLbLXfMY=; b=AegSawmru33TaUSukiKsFgn4Kwx+a12AtHeoEEfxXUiMZVRj0ooR1ukW9tqgrBq8ZK RohE9R+4u68mTONlBiFf7BfCoteDE+ZX7rg456dFJR+lEvbG4vL3mRjJhgMWNpuNJZIR 69OLWPKzMgY1ImPsnYyFyEEsA8LjNmmnewNok697grI0VBO8xoYzB2m1GEvyHW9ZrLyT w3Gf2hgaw6ZheX+lRv7z6/qUSeI4PoPN/+PPetj6HiGOYWqetQOjGY2Tja3Eud22GpCq m+qC93fVzn8ZGY28xpyRBhBFX1kPqX6EabyxdMadDijp0iUkRVEqn/xvvJ2ubpxI8PWp 47UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si9750774plq.92.2019.06.17.13.21.46; Mon, 17 Jun 2019 13:22:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbfFQUVX (ORCPT + 99 others); Mon, 17 Jun 2019 16:21:23 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:55577 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfFQUVX (ORCPT ); Mon, 17 Jun 2019 16:21:23 -0400 Received: from [192.168.1.110] ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MekrN-1iAeRt2PkD-00ajfZ; Mon, 17 Jun 2019 22:21:08 +0200 Subject: Re: [PATCH] drivers: Inline code in devm_platform_ioremap_resource() from two functions To: Markus Elfring , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: cocci@systeme.lip6.fr, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Bartosz Golaszewski , Gilles Muller , Himanshu Jha , Linus Walleij , Masahiro Yamada , Michal Marek , Nicolas Palix References: <20190406061112.31620-1-himanshujha199640@gmail.com> <7b4fe770-dadd-80ba-2ba4-0f2bc90984ef@web.de> <032e347f-e575-c89c-fa62-473d52232735@web.de> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: <910a5806-9a08-adf4-4fba-d5ec2f5807ff@metux.net> Date: Mon, 17 Jun 2019 22:21:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <032e347f-e575-c89c-fa62-473d52232735@web.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:K5hGr7aDqN0OiD+j1BM/crsHbtdWkEiMkJveIo+Dzl/CLujnQAj 5FroUnxU9FmzU4e3pM00kbhMxXtfzw3KBr/v8HQimfFjjti/8q3/bJNqoLbLQykYnS63Ivd f4g8n6pSMr05CBNmmyc84n4a/lEv3TAFV+C+8Msj+qnJMG+Kxak9rQDKtkgZuPRnsisEjqS n9N+AfJ2kqJV3Is7dtJ2g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:e4k+1UwuPpo=:pj4CdOIblCwSg8VC4aJl1l FITRwIlP0W6nc0gM1RzkgDuy0iFLEdXy2Pa4xhNkOnSY3dyoChSW78Y2saH9bzgr52viKms2+ M33GE2TkDasOC8haG7j0zalrTirIclBUDsHdPKoGJPuTStXjwqa5qmNpSDhdWK38pJk/RV2Kp /GccJPSdVqacRQM7JTnh0jZQBds7UOhkn7cvk3ZkhgW3uIhLFxtnUyuF0rdJqxdeeUmJQ/GAc WxnNpa+cIc1gTBnOCwR7koFQK3ogiMM37hI1gI8I72TcrL0rj9B0DosmH2XmVmdjMcAlZ4u2n pwcjFn+t017QK5gMe51At24oFBfjRi/MhWTufUJvx9OIutEjiJZ2kof70gk/2N8RuZQA6FqJZ fQ6IaRRwwfxLQag3r9720gXWDfqne0TV+G68GSebAGgrZCsOKGESUBbzfavLkflcjRu4J+GL4 CofipRYcSPzzrI0uGTCwRv9dfyn9DtpzTYGHxglzw+8qslcPh9klc2KYd6eatZjRUgiFmuQw6 x7iKx3Q7rzo/XQ2wI2V0+s1lLCUvyvHZWsbH8jYNEiLlaJthgPN7pByOwEThLuC8HFiOdZ3qT upMNtQqxBe2PpRZtiIreb9Baz8LyOgx+IJOG4r2r4ciDHFf3Oz/SrUs2sxwDap/kwhPAXOHRa ii1b9XLsSPz6TA8ck7vz+Ee8HhU91iCVyokEAlkXGMljAokSKNo1w+zOKzi/vvqdOGkC/2C0G Uy8+l1fb11ahE7k85/i2K+vZW+BubgUHZp9Go6Bz1JSv0M+SDcQnhKA2aN8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.06.19 11:22, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 14 Jun 2019 11:05:33 +0200 > > Two function calls were combined in this function implementation. > Inline corresponding code so that extra error checks can be avoided here. What exactly is the purpose of this ? Looks like a notable code duplication ... I thought we usually try to reduce this, instead of introducing new ones. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287