diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-29 18:28:30 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-12-01 19:06:18 -0500 |
commit | c48d49aab0b5b48b40e00fe43927efed5fc09d88 (patch) | |
tree | 5d7bbae0dd4786a466d102077411cf5eb13efc3f /drivers/atm | |
parent | a1db5c5b75d6781e8e4dcd6621d5c10463bee0ef (diff) |
solos-pci: remove list_vccs() debugging function
No idea why we've gone so long dumping a list of VCCs with vci==0 on
every ->open() call...
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/solos-pci.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index e3c25dc9edc1..6619a8a9607c 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -164,7 +164,6 @@ static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb, | |||
164 | static uint32_t fpga_tx(struct solos_card *); | 164 | static uint32_t fpga_tx(struct solos_card *); |
165 | static irqreturn_t solos_irq(int irq, void *dev_id); | 165 | static irqreturn_t solos_irq(int irq, void *dev_id); |
166 | static struct atm_vcc* find_vcc(struct atm_dev *dev, short vpi, int vci); | 166 | static struct atm_vcc* find_vcc(struct atm_dev *dev, short vpi, int vci); |
167 | static int list_vccs(int vci); | ||
168 | static int atm_init(struct solos_card *, struct device *); | 167 | static int atm_init(struct solos_card *, struct device *); |
169 | static void atm_remove(struct solos_card *); | 168 | static void atm_remove(struct solos_card *); |
170 | static int send_command(struct solos_card *card, int dev, const char *buf, size_t size); | 169 | static int send_command(struct solos_card *card, int dev, const char *buf, size_t size); |
@@ -791,44 +790,6 @@ static struct atm_vcc *find_vcc(struct atm_dev *dev, short vpi, int vci) | |||
791 | return vcc; | 790 | return vcc; |
792 | } | 791 | } |
793 | 792 | ||
794 | static int list_vccs(int vci) | ||
795 | { | ||
796 | struct hlist_head *head; | ||
797 | struct atm_vcc *vcc; | ||
798 | struct hlist_node *node; | ||
799 | struct sock *s; | ||
800 | int num_found = 0; | ||
801 | int i; | ||
802 | |||
803 | read_lock(&vcc_sklist_lock); | ||
804 | if (vci != 0){ | ||
805 | head = &vcc_hash[vci & (VCC_HTABLE_SIZE -1)]; | ||
806 | sk_for_each(s, node, head) { | ||
807 | num_found ++; | ||
808 | vcc = atm_sk(s); | ||
809 | printk(KERN_DEBUG "Device: %d Vpi: %d Vci: %d\n", | ||
810 | vcc->dev->number, | ||
811 | vcc->vpi, | ||
812 | vcc->vci); | ||
813 | } | ||
814 | } else { | ||
815 | for(i = 0; i < VCC_HTABLE_SIZE; i++){ | ||
816 | head = &vcc_hash[i]; | ||
817 | sk_for_each(s, node, head) { | ||
818 | num_found ++; | ||
819 | vcc = atm_sk(s); | ||
820 | printk(KERN_DEBUG "Device: %d Vpi: %d Vci: %d\n", | ||
821 | vcc->dev->number, | ||
822 | vcc->vpi, | ||
823 | vcc->vci); | ||
824 | } | ||
825 | } | ||
826 | } | ||
827 | read_unlock(&vcc_sklist_lock); | ||
828 | return num_found; | ||
829 | } | ||
830 | |||
831 | |||
832 | static int popen(struct atm_vcc *vcc) | 793 | static int popen(struct atm_vcc *vcc) |
833 | { | 794 | { |
834 | struct solos_card *card = vcc->dev->dev_data; | 795 | struct solos_card *card = vcc->dev->dev_data; |
@@ -858,8 +819,6 @@ static int popen(struct atm_vcc *vcc) | |||
858 | 819 | ||
859 | set_bit(ATM_VF_ADDR, &vcc->flags); | 820 | set_bit(ATM_VF_ADDR, &vcc->flags); |
860 | set_bit(ATM_VF_READY, &vcc->flags); | 821 | set_bit(ATM_VF_READY, &vcc->flags); |
861 | list_vccs(0); | ||
862 | |||
863 | 822 | ||
864 | return 0; | 823 | return 0; |
865 | } | 824 | } |