Skip to content

Commit

Permalink
[VLAN]: sparse warning fix
Browse files Browse the repository at this point in the history
Minor sparse warning fix.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 28, 2008
1 parent f86e82f commit 1402c85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/8021q/vlanproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ static inline int is_vlan_dev(struct net_device *dev)

/* start read of /proc/net/vlan/config */
static void *vlan_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(dev_base_lock)
{
struct net_device *dev;
loff_t i = 1;
Expand Down Expand Up @@ -261,6 +262,7 @@ static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void vlan_seq_stop(struct seq_file *seq, void *v)
__releases(dev_base_lock)
{
read_unlock(&dev_base_lock);
}
Expand Down

0 comments on commit 1402c85

Please sign in to comment.