Variable off is already an unsigned int.

* i386/i386at/kd.c (kdmmap) (off): Remove unnecessary cast.

---
 i386/i386at/kd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 064fd22..5f3655b 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -561,7 +561,7 @@ kdmmap(dev, off, prot)
        off_t off;
        int prot;
 {
-       if ((u_int) off >= (128*1024))
+       if (off >= (128*1024))
                return(-1);
 
        /* Get page frame number for the page to be mapped. */
-- 
1.8.1.4


Reply via email to