Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3699007ybi; Fri, 5 Jul 2019 12:08:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhu5XgmMdIXAgXnVGfGzi6TAi4j9jP8PkdV1zGt9Q+wQNxE+NpruXiYnzM2d25ruaHX1Kq X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr7452891pjv.48.1562353713132; Fri, 05 Jul 2019 12:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562353713; cv=none; d=google.com; s=arc-20160816; b=pqcBHrunOjvweBpET2DTQxmR5LmFgUNu8MYkbnoq3HAlWPa1+W9QAQWRatETvGeNHP hlBfCzYCoFasSiP+YvWaxkefOF0sHFZ+hVUZFt1JstL7DiVpPwGAGdp5k65m6UERPCU/ N2QnMwWe3jDypIgPfuZlJ2bA3Oo6IumxlXI5pTfJHjO0oQKyP7CNjwPiGZ8m1SfBZNyP IiZuCToFd6SnutXjtr23MhQ+skiJwF3froFCYgDfwp+YH8hHMk64B4HcL4JVYc2t+zZd cqrR4R+O0lE4maSEDsUAWyjmtUL9n1czJ76fzRXSWLHwtOomjNOu1NfO7ZigsNnXiaxQ waPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iwR0O1DOb4cs6JZdrHtO21CSJzkHN85F1emfKPowXfA=; b=vTHNv+RlrcLc6UOZ3WZJ0wkoY00B1FVPrS4Wa/BV5C0AVRzkcEyg4jwN8Vge/5rm6U ltiaaXXCX4LfZzKRTGi1H7B/67fOt3kT7rkntqA9Bc8XywatUrqaWRAI8GIA1DaGd1nA MDWZLkci9FpsOjRvSpElSXl1jVQMjXxHPp0PuLf/uOdUeay6LBuo6yw/Vi1unZR8Frgo KSAWyYBtyCA8+ozlhXAXS0P+Ym7o1hlpY3Gn8XX1KQKAyTS9m+VvvTnlkp1Q8pjKA6zr bvWL/f5izxZJsbI1PdOZqAugdFU539biDvoW8UJrdmjpBV04ZXdr8UFG1aVaMsSMMQdu bZ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nTvI0cTN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g32si9560402pje.38.2019.07.05.12.08.17; Fri, 05 Jul 2019 12:08:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nTvI0cTN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727620AbfGETHD (ORCPT + 99 others); Fri, 5 Jul 2019 15:07:03 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:40567 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfGETHD (ORCPT ); Fri, 5 Jul 2019 15:07:03 -0400 Received: by mail-yw1-f68.google.com with SMTP id b143so2707079ywb.7; Fri, 05 Jul 2019 12:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iwR0O1DOb4cs6JZdrHtO21CSJzkHN85F1emfKPowXfA=; b=nTvI0cTN0FvDn5T2XZArJ46MGWfNan3OWUHB2ycDfp0STBMErkLnHhzptlyk5LbFp+ nhYlImYW3naCUZHPDIOscHC68sCFpTiqI6YN2FHvmVBFVTIZLmOxPT6Tz+KsTt9YCNQv DbeMrSXv6aP9mbkB080jfCqUObrO6Ii88P3yplsf1Sl+EWxM2JWiY5CJhnC9ZgDllVrs qFo2cwUXd7aFO8ZmFeqHGcTQWJjj2Z8DIj5lZ2YZwKvcQJjW3j4FrHip4zw8EEao79gI smVBy/T+7CV5BW3grUZqSP+ig8kYXUrjHzy2ioJtoEWKsC1mAUqTXD9yN79nJSYMbmRF /0TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iwR0O1DOb4cs6JZdrHtO21CSJzkHN85F1emfKPowXfA=; b=tVJm2nawYmQhGqM7XiBpZhFWepN0z7RveGeKOqCzYuF3mAPa+JWEMNi2wE8ViOGD5H 7/dWdObKgkHs2zTunTfAPs4Aj46VC78tjRnUXjAgJuWfZ7LNPOk4/GDnIfNAwGQ9/O2K 4Sh22PSJRZmonaVmzwDFeeR2XauvYkZemIvM2OkoRoKl04aJq1/kAK6asT8WYMVN5Siw a21g6x7yBZ1i5bycJ1HrIisNOS5e9QPt/VVHXftaxDyI8Ie9TLpCnRFb7LPuXZ+8l944 ixU6TrxZgPCBJ5F8X7mPLJVmEY+vmMhgQIsszW1OxF38OoH26xXJEJYaFFCA9+HXGekr a9wA== X-Gm-Message-State: APjAAAUaxS/2nCxVhK6l+UplnOdHaWTJouJa48Tb3gpyO2ok3cyy7bcJ 3gt1P03mEiKKE8ZFZ1yeMKC8J7UlvnMbTC/Fy1dN+w== X-Received: by 2002:a0d:fc84:: with SMTP id m126mr3115578ywf.501.1562353622327; Fri, 05 Jul 2019 12:07:02 -0700 (PDT) MIME-Version: 1.0 References: <495c9f2e-7880-ee9a-5c61-eee598bb24c2@web.de> In-Reply-To: <495c9f2e-7880-ee9a-5c61-eee598bb24c2@web.de> From: Max Filippov Date: Fri, 5 Jul 2019 12:06:51 -0700 Message-ID: Subject: Re: [PATCH] xtensa: One function call less in bootmem_init() To: Markus Elfring Cc: Andrew Morton , Chris Zankel , Michal Hocko , Mike Rapoport , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Markus, On Fri, Jul 5, 2019 at 9:43 AM Markus Elfring wrote: > > From: Markus Elfring > Date: Fri, 5 Jul 2019 18:33:58 +0200 > > Avoid an extra function call by using a ternary operator instead of > a conditional statement for a setting selection. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > arch/xtensa/mm/init.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Thanks for the patch. It doesn't change generated code since PHYS_OFFSET is a build-time constant, but it's a nice cleanup. Applied to my xtensa tree. -- Thanks. -- Max