From: Julia Lawall <Julia.Lawall@lip6.fr> To: Antonino Daplas <adaplas@gmail.com> Cc: joe@perches.com, kernel-janitors@vger.kernel.org, Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>, Tomi Valkeinen <tomi.valkeinen@ti.com>, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] video: fbdev: riva: delete double assignment Date: Sat, 23 Aug 2014 20:33:22 +0200 [thread overview] Message-ID: <1408818808-18850-2-git-send-email-Julia.Lawall@lip6.fr> (raw) In-Reply-To: <1408818808-18850-1-git-send-email-Julia.Lawall@lip6.fr> From: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression i; @@ *i = ...; i = ...; // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> --- The patches in this series do not depend on each other. drivers/video/fbdev/riva/riva_hw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/riva/riva_hw.c b/drivers/video/fbdev/riva/riva_hw.c index 78fdbf5..8bdf37f 100644 --- a/drivers/video/fbdev/riva/riva_hw.c +++ b/drivers/video/fbdev/riva/riva_hw.c @@ -430,7 +430,6 @@ static char nv3_arb(nv3_fifo_info * res_info, nv3_sim_state * state, nv3_arb_in int mmisses, gmisses, vmisses, eburst_size, mburst_size; int refresh_cycle; - refresh_cycle = 0; refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5; mmisses = 2; if (state->mem_aligned) gmisses = 2;
WARNING: multiple messages have this Message-ID (diff)
From: Julia Lawall <Julia.Lawall@lip6.fr> To: Antonino Daplas <adaplas@gmail.com> Cc: joe@perches.com, kernel-janitors@vger.kernel.org, Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>, Tomi Valkeinen <tomi.valkeinen@ti.com>, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] video: fbdev: riva: delete double assignment Date: Sat, 23 Aug 2014 18:33:22 +0000 [thread overview] Message-ID: <1408818808-18850-2-git-send-email-Julia.Lawall@lip6.fr> (raw) In-Reply-To: <1408818808-18850-1-git-send-email-Julia.Lawall@lip6.fr> From: Julia Lawall <Julia.Lawall@lip6.fr> Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression i; @@ *i = ...; i = ...; // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> --- The patches in this series do not depend on each other. drivers/video/fbdev/riva/riva_hw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/riva/riva_hw.c b/drivers/video/fbdev/riva/riva_hw.c index 78fdbf5..8bdf37f 100644 --- a/drivers/video/fbdev/riva/riva_hw.c +++ b/drivers/video/fbdev/riva/riva_hw.c @@ -430,7 +430,6 @@ static char nv3_arb(nv3_fifo_info * res_info, nv3_sim_state * state, nv3_arb_in int mmisses, gmisses, vmisses, eburst_size, mburst_size; int refresh_cycle; - refresh_cycle = 0; refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5; mmisses = 2; if (state->mem_aligned) gmisses = 2;
next prev parent reply other threads:[~2014-08-23 18:39 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-08-23 18:33 [PATCH 0/7] delete double assignment Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-23 18:33 ` Julia Lawall [this message] 2014-08-23 18:33 ` [PATCH 1/7] video: fbdev: riva: " Julia Lawall 2014-08-23 18:33 ` [PATCH 2/7] video: fbdev: intelfb: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-26 10:56 ` Tomi Valkeinen 2014-08-26 10:56 ` Tomi Valkeinen 2014-08-23 18:33 ` [PATCH 3/7] serial: vr41xx_siu: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-23 18:33 ` [PATCH 4/7] MIPS: BCM63xx: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-25 11:27 ` Ralf Baechle 2014-08-25 11:27 ` Ralf Baechle 2014-08-25 19:09 ` Jonas Gorski 2014-08-25 19:09 ` Jonas Gorski 2014-08-23 18:33 ` [PATCH 5/7] wusb: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-23 18:33 ` [PATCH 6/7] video: fbdev: sis: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall 2014-08-24 18:21 ` Geert Uytterhoeven 2014-08-24 18:21 ` Geert Uytterhoeven 2014-08-24 18:40 ` Julia Lawall 2014-08-24 18:40 ` Julia Lawall 2014-08-25 11:36 ` Geert Uytterhoeven 2014-08-25 11:36 ` Geert Uytterhoeven 2014-08-26 10:51 ` Tomi Valkeinen 2014-08-26 10:51 ` Tomi Valkeinen 2014-08-23 18:33 ` [PATCH 7/7] MIPS: Alchemy: au1200fb: " Julia Lawall 2014-08-23 18:33 ` Julia Lawall
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1408818808-18850-2-git-send-email-Julia.Lawall@lip6.fr \ --to=julia.lawall@lip6.fr \ --cc=adaplas@gmail.com \ --cc=joe@perches.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-fbdev@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=plagnioj@jcrosoft.com \ --cc=tomi.valkeinen@ti.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.