Commit 71c2e86e authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: Kill unused first argument in dev_get_idx().

parent 9386eeee
......@@ -1836,8 +1836,7 @@ static int dev_ifconf(char *arg)
* 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 @@ static __inline__ struct net_device *dev_get_idx(struct seq_file *seq,
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment