lkml.org 
[lkml]   [2004]   [May]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 26 May 2004 02:28:35 -0400
FromJeff Garzik <>
SubjectRe: Don't return void types from void functions.
Linux Kernel Mailing List wrote:
> diff -Nru a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c
> --- a/drivers/net/tokenring/olympic.c	2004-05-25 23:06:49 -07:00
> +++ b/drivers/net/tokenring/olympic.c	2004-05-25 23:06:49 -07:00
> @@ -1806,7 +1806,7 @@
> 
>  static void __exit olympic_pci_cleanup(void)
>  {
> -	return pci_unregister_driver(&olympic_driver) ; 
> +	pci_unregister_driver(&olympic_driver) ; 
>  }	


Can we make gcc error out when it finds this?

	Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [from the cache]
©2003-2008