* [PATCH 12/14] drivers/video/omap/blizzard.c: delete double assignment [not found] <1288088743-3725-1-git-send-email-julia@diku.dk> @ 2010-10-26 10:25 ` Julia Lawall 2010-10-26 12:36 ` [PATCH 12/14] drivers/video/omap/blizzard.c: delete double Nicolas Kaiser 0 siblings, 1 reply; 2+ messages in thread From: Julia Lawall @ 2010-10-26 10:25 UTC (permalink / raw) To: Tomi Valkeinen; +Cc: kernel-janitors, linux-fbdev, linux-omap, linux-kernel From: Julia Lawall <julia@diku.dk> Delete successive assignments to the same location. Initialize the out_y field as well as the out_x field, rather than initializing the out_x field twice. 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@diku.dk> --- This changes the semantics and has not been tested. drivers/video/omap/blizzard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/omap/blizzard.c b/drivers/video/omap/blizzard.c index 2ffb34a..87785c2 100644 --- a/drivers/video/omap/blizzard.c +++ b/drivers/video/omap/blizzard.c @@ -1590,7 +1590,7 @@ static int blizzard_init(struct omapfb_device *fbdev, int ext_mode, blizzard.auto_update_window.width = fbdev->panel->x_res; blizzard.auto_update_window.height = fbdev->panel->y_res; blizzard.auto_update_window.out_x = 0; - blizzard.auto_update_window.out_x = 0; + blizzard.auto_update_window.out_y = 0; blizzard.auto_update_window.out_width = fbdev->panel->x_res; blizzard.auto_update_window.out_height = fbdev->panel->y_res; blizzard.auto_update_window.format = 0; ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 12/14] drivers/video/omap/blizzard.c: delete double 2010-10-26 10:25 ` [PATCH 12/14] drivers/video/omap/blizzard.c: delete double assignment Julia Lawall @ 2010-10-26 12:36 ` Nicolas Kaiser 0 siblings, 0 replies; 2+ messages in thread From: Nicolas Kaiser @ 2010-10-26 12:36 UTC (permalink / raw) To: Julia Lawall Cc: Tomi Valkeinen, kernel-janitors, linux-fbdev, linux-omap, linux-kernel * Julia Lawall <julia@diku.dk>: > Delete successive assignments to the same location. Initialize the out_y > field as well as the out_x field, rather than initializing the out_x field > twice. Hi there! An identical patch is already in the -mm tree: > The patch titled > drivers/video/omap/blizzard.c: suspected typo in assignment > has been added to the -mm tree. Its filename is > video-omap-suspected-typo-in-assignment.patch > See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: drivers/video/omap/blizzard.c: suspected typo in assignment > From: Nicolas Kaiser <nikai@nikai.net> > > Untested, but looks like an obvious typo to me. > > Signed-off-by: Nicolas Kaiser <nikai@nikai.net> > Cc: Tomi Valkeinen <tomi.valkeinen@nokia.com> > Cc: Tony Lindgren <tony@atomide.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Best regards, Nicolas Kaiser ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-26 12:36 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1288088743-3725-1-git-send-email-julia@diku.dk> 2010-10-26 10:25 ` [PATCH 12/14] drivers/video/omap/blizzard.c: delete double assignment Julia Lawall 2010-10-26 12:36 ` [PATCH 12/14] drivers/video/omap/blizzard.c: delete double Nicolas Kaiser
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).