jsm: removing unused spinlock
PATCH 1/1 jsm: removing unused spinlock
This patch removes bd_lock spinlock (inside jsm_board structure). The lock is initialized in the probe function and not used anymore.
Signed-off-by Breno Leitao <[email protected]>
--- drivers/serial/jsm/jsm.h | 2 -- drivers/serial/jsm/jsm_driver.c | 1 - 2 files changed, 0 insertions(+), 3 deletions(-)
drivers/serial/jsm/jsm.h +0 -2
@@ -130,8 +130,6 @@ struct jsm_boardstruct pci_dev *pci_dev;u32 maxports;/* MAX ports this board can handle */ -spinlock_t bd_lock;/* Used to protect board */ -spinlock_t bd_intr_lock;/* Used to protect the poller tasklet and * the interrupt routine from each other. */
drivers/serial/jsm/jsm_driver.c +0 -1
@@ -88,7 +88,6 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_deviceelse brd->maxports =2 ; -spin_lock_init (&brd->bd_lock);spin_lock_init (&brd->bd_intr_lock);/* store which revision we have */
Signature · 1 line
1.6.0.2