LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Trivial patch in /net/core/net-sysfs.c
@ 2004-05-23  8:48 Vadim Lobanov
  0 siblings, 0 replies; only message in thread
From: Vadim Lobanov @ 2004-05-23  8:48 UTC (permalink / raw)
  To: netdev, linux-kernel

Hello,

Here is a trivial patch to /net/core/net-sysfs.c, to remove 3 unnecessary 
word lengths from memory. Diffed against the base 2.6.6 tree. Please note 
that this is a first stab at attempting to submit a patch, so let me know if
something's not quite right, so that I can rework it. :)

=========================================================================

--- linux-2.6.6/net/core/net-sysfs.c    2004-05-09 19:33:19.000000000 
-0700
+++ linux-2.6.6/net/core/net-sysfs.c    2004-05-23 01:33:57.000000000 
-0700
@@ -20,9 +20,9 @@
 #define to_class_dev(obj) container_of(obj,struct class_device,kobj)
 #define to_net_dev(class) container_of(class, struct net_device, 
class_dev)
 
-static const char *fmt_hex = "%#x\n";
-static const char *fmt_dec = "%d\n";
-static const char *fmt_ulong = "%lu\n";
+static const char fmt_hex[] = "%#x\n";
+static const char fmt_dec[] = "%d\n";
+static const char fmt_ulong[] = "%lu\n";
 
 static inline int dev_isalive(const struct net_device *dev) 
 {

========================================================================

-Vadim Lobanov


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-23  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-23  8:48 [PATCH] Trivial patch in /net/core/net-sysfs.c Vadim Lobanov

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