netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] can: make function can_get_bittiming static
@ 2011-07-22  2:22 Thadeu Lima de Souza Cascardo
  2011-07-22  4:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Thadeu Lima de Souza Cascardo @ 2011-07-22  2:22 UTC (permalink / raw)
  To: Wolfgang Grandegger
  Cc: netdev, linux-kernel, srcvale, Thadeu Lima de Souza Cascardo

The function can_get_bittiming is not used anywhere else, so it should be
static.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
---
 drivers/net/can/dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c
index d0f8c7e..9bf1116 100644
--- a/drivers/net/can/dev.c
+++ b/drivers/net/can/dev.c
@@ -208,7 +208,7 @@ static int can_fixup_bittiming(struct net_device *dev, struct can_bittiming *bt)
 	return 0;
 }
 
-int can_get_bittiming(struct net_device *dev, struct can_bittiming *bt)
+static int can_get_bittiming(struct net_device *dev, struct can_bittiming *bt)
 {
 	struct can_priv *priv = netdev_priv(dev);
 	int err;
-- 
1.7.5.4

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

* Re: [PATCH] can: make function can_get_bittiming static
  2011-07-22  2:22 [PATCH] can: make function can_get_bittiming static Thadeu Lima de Souza Cascardo
@ 2011-07-22  4:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-07-22  4:35 UTC (permalink / raw)
  To: cascardo; +Cc: wg, netdev, linux-kernel, srcvale

From: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Date: Thu, 21 Jul 2011 23:22:31 -0300

> The function can_get_bittiming is not used anywhere else, so it should be
> static.
> 
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>

Applied.

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

end of thread, other threads:[~2011-07-22  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22  2:22 [PATCH] can: make function can_get_bittiming static Thadeu Lima de Souza Cascardo
2011-07-22  4:35 ` David Miller

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).