aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-07-10 06:54:38 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-11 02:13:45 -0400
commita55b138b1da3d25c04f66f8df03d659dfd46c950 (patch)
tree3f30fa64e1d96bbd2e07fc6fbfb7f9adf6ea12ca
parentfdd28d7328f4c3ddf77ba163e257d7dc48392767 (diff)
net: Properly define functions with no parameters
Defining a function with no parameters as 'T foo()' is the deprecated K&R style, and is not strictly equivalent to defining it as 'T foo(void)'. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/cris/eth_v10.c2
-rw-r--r--net/core/dev.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c
index 9c755db6b16d..f0c8bd54ce29 100644
--- a/drivers/net/cris/eth_v10.c
+++ b/drivers/net/cris/eth_v10.c
@@ -1008,7 +1008,7 @@ e100_send_mdio_bit(unsigned char bit)
1008} 1008}
1009 1009
1010static unsigned char 1010static unsigned char
1011e100_receive_mdio_bit() 1011e100_receive_mdio_bit(void)
1012{ 1012{
1013 unsigned char bit; 1013 unsigned char bit;
1014 *R_NETWORK_MGM_CTRL = 0; 1014 *R_NETWORK_MGM_CTRL = 0;
diff --git a/net/core/dev.c b/net/core/dev.c
index 69f7a1a393d8..9c21548e5b31 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1798,7 +1798,7 @@ EXPORT_SYMBOL(netif_set_real_num_rx_queues);
1798 * This routine should set an upper limit on the number of RSS queues 1798 * This routine should set an upper limit on the number of RSS queues
1799 * used by default by multiqueue devices. 1799 * used by default by multiqueue devices.
1800 */ 1800 */
1801int netif_get_num_default_rss_queues() 1801int netif_get_num_default_rss_queues(void)
1802{ 1802{
1803 return min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus()); 1803 return min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus());
1804} 1804}