aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/atm/fore200e.c4
-rw-r--r--drivers/atm/he.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index f766cc46b4c4..bc53fed89b1e 100644
--- a/drivers/atm/fore200e.c
+++ b/drivers/atm/fore200e.c
@@ -2906,8 +2906,8 @@ fore200e_proc_read(struct atm_dev *dev, loff_t* pos, char* page)
2906 u32 media_index = FORE200E_MEDIA_INDEX(fore200e->bus->read(&fore200e->cp_queues->media_type)); 2906 u32 media_index = FORE200E_MEDIA_INDEX(fore200e->bus->read(&fore200e->cp_queues->media_type));
2907 u32 oc3_index; 2907 u32 oc3_index;
2908 2908
2909 if ((media_index < 0) || (media_index > 4)) 2909 if (media_index > 4)
2910 media_index = 5; 2910 media_index = 5;
2911 2911
2912 switch (fore200e->loop_mode) { 2912 switch (fore200e->loop_mode) {
2913 case ATM_LM_NONE: oc3_index = 0; 2913 case ATM_LM_NONE: oc3_index = 0;
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index 70667033a568..e90665876c47 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -2739,7 +2739,7 @@ he_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __user *arg)
2739 spin_lock_irqsave(&he_dev->global_lock, flags); 2739 spin_lock_irqsave(&he_dev->global_lock, flags);
2740 switch (reg.type) { 2740 switch (reg.type) {
2741 case HE_REGTYPE_PCI: 2741 case HE_REGTYPE_PCI:
2742 if (reg.addr < 0 || reg.addr >= HE_REGMAP_SIZE) { 2742 if (reg.addr >= HE_REGMAP_SIZE) {
2743 err = -EINVAL; 2743 err = -EINVAL;
2744 break; 2744 break;
2745 } 2745 }