Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175042
b: refs/heads/master
c: 9dbeb89
h: refs/heads/master
v: v3
  • Loading branch information
Vasilis Liaskovitis authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent bc07774 commit 5228b7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e20aea64e160d5873c2aaf62cc255ea81ce000eb
refs/heads/master: 9dbeb8967262f2e6777441318780f224261ec410
12 changes: 0 additions & 12 deletions trunk/drivers/staging/b3dfg/b3dfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ static int get_wand_status(struct b3dfg_dev *fgdev, int __user *arg)

static int enable_transmission(struct b3dfg_dev *fgdev)
{
u16 command;
unsigned long flags;
struct device *dev = &fgdev->pdev->dev;

Expand All @@ -480,17 +479,6 @@ static int enable_transmission(struct b3dfg_dev *fgdev)
return -EINVAL;
}

/*
* Check we're a bus master.
* TODO: I think we can remove this having added the pci_set_master call
*/
pci_read_config_word(fgdev->pdev, PCI_COMMAND, &command);
if (!(command & PCI_COMMAND_MASTER)) {
dev_err(dev, "not a bus master, force-enabling\n");
pci_write_config_word(fgdev->pdev, PCI_COMMAND,
command | PCI_COMMAND_MASTER);
}

spin_lock_irqsave(&fgdev->buffer_lock, flags);

/* Handle racing enable_transmission calls. */
Expand Down

0 comments on commit 5228b7a

Please sign in to comment.