Skip to content

Commit

Permalink
Merge refs/heads/upstream-fixes from master.kernel.org:/pub/scm/linux…
Browse files Browse the repository at this point in the history
…/kernel/git/jgarzik/netdev-2.6
  • Loading branch information
Linus Torvalds committed Aug 28, 2005
2 parents f786648 + 214838a commit 3d52acb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/net/hamradio/6pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,6 @@ static int sp_set_mac_address(struct net_device *dev, void *addr)
{
struct sockaddr_ax25 *sa = addr;

if (sa->sax25_family != AF_AX25)
return -EINVAL;

if (!sa->sax25_ndigis)
return -EINVAL;

spin_lock_irq(&dev->xmit_lock);
memcpy(dev->dev_addr, &sa->sax25_call, AX25_ADDR_LEN);
spin_unlock_irq(&dev->xmit_lock);
Expand Down Expand Up @@ -668,6 +662,9 @@ static int sixpack_open(struct tty_struct *tty)
netif_start_queue(dev);

init_timer(&sp->tx_t);
sp->tx_t.function = sp_xmit_on_air;
sp->tx_t.data = (unsigned long) sp;

init_timer(&sp->resync_t);

spin_unlock_bh(&sp->lock);
Expand Down

0 comments on commit 3d52acb

Please sign in to comment.