| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] get rid of unused argument |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Tue, 19 Aug 2003 15:56:29 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
dev_get_idx doesn't need the first arg..
diff -Nru a/net/core/dev.c b/net/core/dev.c
--- a/net/core/dev.c Tue Aug 19 15:55:00 2003
+++ b/net/core/dev.c Tue Aug 19 15:55:00 2003
@@ -1836,8 +1836,7 @@
* This is invoked by the /proc filesystem handler to display a device
* in detail.
*/
-static __inline__ struct net_device *dev_get_idx(struct seq_file *seq,
- loff_t pos)
+static __inline__ struct net_device *dev_get_idx(loff_t pos)
{
struct net_device *dev;
loff_t i;
@@ -1850,7 +1849,7 @@
void *dev_seq_start(struct seq_file *seq, loff_t *pos)
{
read_lock(&dev_base_lock);
- return *pos ? dev_get_idx(seq, *pos - 1) : (void *)1;
+ return *pos ? dev_get_idx(*pos - 1) : (void *)1;
}
void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] (4/4) convert irlan to seq_file interface, Francois Romieu |
|---|---|
| Next by Date: | [PATCH] kill old irtty, Stephen Hemminger |
| Previous by Thread: | [RFT][PATCH] convert 802/tr to seq_file, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] get rid of unused argument, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |