Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142754
b: refs/heads/master
c: c2ac7cd
h: refs/heads/master
v: v3
  • Loading branch information
Alex Chiang authored and Jesse Barnes committed Apr 6, 2009
1 parent 1ed2f07 commit fb9c1ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: d6141668c24d7d75c3486499c05a6b382cbc2bbe
refs/heads/master: c2ac7cdc6707a8a3fc5cdaebb65cb724ba8ecdef
4 changes: 0 additions & 4 deletions trunk/drivers/pci/pci-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,10 @@ remove_store(struct device *dev, struct device_attribute *dummy,
{
int ret = 0;
unsigned long val;
struct pci_dev *pdev = to_pci_dev(dev);

if (strict_strtoul(buf, 0, &val) < 0)
return -EINVAL;

if (pci_is_root_bus(pdev->bus))
return -EBUSY;

/* An attribute cannot be unregistered by one of its own methods,
* so we have to use this roundabout approach.
*/
Expand Down

0 comments on commit fb9c1ed

Please sign in to comment.