Fix redundant check for uint32_t >= 0.
authorphampson <phampson>
Mon, 1 Sep 2003 03:00:28 +0000 (03:00 +0000)
committerphampson <phampson>
Mon, 1 Sep 2003 03:00:28 +0000 (03:00 +0000)
Thanks to Steve Grubb <linux_4ever@yahoo.com>

src/modules/rlm_radutmp/rlm_radutmp.c

index b8bd938..e4be7c7 100644 (file)
@@ -302,7 +302,7 @@ static int radutmp_accounting(void *instance, REQUEST *request)
                                        sizeof(ut.session_id));
                                break;
                        case PW_NAS_PORT_TYPE:
-                               if (vp->lvalue >= 0 && vp->lvalue <= 4)
+                               if (vp->lvalue <= 4)
                                        ut.porttype = porttypes[vp->lvalue];
                                nas_port_type = vp->lvalue;
                                break;