Messages in this thread Patch in this message | | | Date | Sun, 23 May 2004 01:48:45 -0700 (PDT) | From | Vadim Lobanov <> | Subject | [PATCH] Trivial patch in /net/core/net-sysfs.c |
| |
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
- 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/
| |