aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-07-10 10:54:38 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-10 23:13:45 -0700
commita55b138b1da3d25c04f66f8df03d659dfd46c950 (patch)
tree3f30fa64e1d96bbd2e07fc6fbfb7f9adf6ea12ca /net/core/dev.c
parentMerge branch 'metrics_restructure' (diff)
downloadlinux-dev-a55b138b1da3d25c04f66f8df03d659dfd46c950.tar.xz
linux-dev-a55b138b1da3d25c04f66f8df03d659dfd46c950.zip
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>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
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);
* This routine should set an upper limit on the number of RSS queues
* used by default by multiqueue devices.
*/
-int netif_get_num_default_rss_queues()
+int netif_get_num_default_rss_queues(void)
{
return min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus());
}