Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1692280
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] liquidio: lio_main: remove unnecessary static in setup_io_queues() |
| Date | 2017-07-20 01:40 +0200 |
| Message-ID | <u56Js-7ff-17@gated-at.bofh.it> (permalink) |
| References | <u4I4p-7z6-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 | Next — Previous in thread | Find similar | Unroll 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