public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* commas
@ 2013-08-07  9:17 Julia Lawall
  2013-08-07  9:29 ` commas Richard Genoud
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Julia Lawall @ 2013-08-07  9:17 UTC (permalink / raw)
  To: kernel-janitors

There are a number of places where kernel code uses commas, where one
might normally expect a semicolon.  For example,

drivers/cpufreq/sparc-us2e-cpufreq.c:

 		driver->target = us2e_freq_target;
 		driver->get = us2e_freq_get;
 		driver->exit = us2e_freq_cpu_exit;
		driver->owner = THIS_MODULE,     <------------- comma here
		strcpy(driver->name, "UltraSPARC-IIe");

 		cpufreq_us2e_driver = driver;
 		ret = cpufreq_register_driver(driver);

Is there any reason for this?  I guess that they are not very harmful, but
if one happens to write a static checker rule that expects a ;, then this
code will be overlooked.

julia

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-07  9:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07  9:17 commas Julia Lawall
2013-08-07  9:29 ` commas Richard Genoud
2013-08-07  9:31 ` commas Julia Lawall
2013-08-07  9:47 ` commas Richard Genoud
2013-08-07  9:49 ` commas Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox