Skip to content

Commit

Permalink
PCI: remove unnecessary volatile in PCIe hotplug struct controller
Browse files Browse the repository at this point in the history
Proper memory barriers have been added to order accesses
to ->cmd_busy, so volatile declaration for cmd_busy can
be removed.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Ming Lei authored and Jesse Barnes committed Jul 16, 2008
1 parent 809d9a8 commit 9fce1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/pciehp.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct controller {
u32 slot_cap;
u8 cap_base;
struct timer_list poll_timer;
volatile int cmd_busy;
int cmd_busy;
unsigned int no_cmd_complete:1;
};

Expand Down

0 comments on commit 9fce1bc

Please sign in to comment.