diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-10-23 02:09:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-29 04:39:55 -0400 |
commit | e0c5567d06ecf7777b6c46f4d933a0a6e09a44f3 (patch) | |
tree | e7ce3e8b2a082919d3f928fb7dad0d8eac8edcfd /drivers/atm/fore200e.c | |
parent | 65a1c4fffaaf5ca166a1263d84ca664d5192cda6 (diff) |
atm: Cleanup redundant tests on unsigned
The variables are unsigned so the `< 0' test always fails, the
other part of the test catches wrapped values.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/fore200e.c')
-rw-r--r-- | drivers/atm/fore200e.c | 4 |
1 files changed, 2 insertions, 2 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; |