Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1322202
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 3/4] clk: s2mps11: remove redundant static variables declaration |
| Date | 2016-01-30 01:40 +0100 |
| Message-ID | <qWrK2-2Ro-15@gated-at.bofh.it> (permalink) |
| References | <qSY1Q-4Y7-17@gated-at.bofh.it> <qSY1S-4Y7-63@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 01/20, Andi Shyti wrote: > The clk_table and clk_data are declared static. The clk_table > contains the three clock data stractures belonging to the s2mps11 > driver. In the probe function it gets stored into clk_data. > > Remove clk_table and refer directly to clk_data. > > clk_data, itself, is also declared static. Declare locally it > and allocate it inside the probe function, as it is not used > anywhere else. > > Signed-off-by: Andi Shyti <andi.shyti@samsung.com> > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v3 3/4] clk: s2mps11: remove redundant static variables declaration Stephen Boyd <sboyd@codeaurora.org> - 2016-01-30 01:40 +0100
csiph-web