Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1692280

Re: [PATCH] liquidio: lio_main: remove unnecessary static in setup_io_queues()

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] liquidio: lio_main: remove unnecessary static in setup_io_queues()
Date Thu, 20 Jul 2017 01:40:02 +0200
Message-ID <u56Js-7ff-17@gated-at.bofh.it> (permalink)
References <u4I4p-7z6-1@gated-at.bofh.it>
X-Original-To gustavo@embeddedor.com
X-Mailer Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
MIME-Version 1.0
Content-Type Text/Plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Greylist Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 19 Jul 2017 16:34:30 -0700 (PDT)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 13
Organization linux.* mail to news gateway
X-Original-Cc derek.chickles@caviumnetworks.com, satananda.burla@caviumnetworks.com, felix.manlunas@caviumnetworks.com, raghu.vatsavayi@caviumnetworks.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Wed, 19 Jul 2017 16:34:30 -0700 (PDT)
X-Original-Message-ID <20170719.163430.2283130742325293687.davem@davemloft.net>
X-Original-References <20170718205348.GA25613@embeddedgus>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1692280

Show key headers only | View raw


From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Tue, 18 Jul 2017 15:53:48 -0500

> Remove unnecessary static on local variables cpu_id_modulus and cpu_id.
> Such variables are initialized before being used, on every execution
> path throughout the function. The static has no benefit and, removing
> it reduces the object file size.
> 
> This issue was detected using Coccinelle and the following semantic patch:
...
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>

Applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] liquidio: lio_main: remove unnecessary static in  setup_io_queues() "Gustavo A. R. Silva" <gustavo@embeddedor.com> - 2017-07-18 23:20 +0200
  Re: [PATCH] liquidio: lio_main: remove unnecessary static in  setup_io_queues() David Miller <davem@davemloft.net> - 2017-07-20 01:40 +0200

csiph-web