[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/08] i386/i386at/kd.c (kdmmap): remove unnecessary cast
From: |
Marin Ramesa |
Subject: |
[PATCH 06/08] i386/i386at/kd.c (kdmmap): remove unnecessary cast |
Date: |
Tue, 10 Dec 2013 19:20:01 +0100 |
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
- [PATCH 01/08] i386/i386at/kd.c (kdintr): quiet the GCC warning about signed overflow, Marin Ramesa, 2013/12/10
- [PATCH 03/08] i386/i386/db_trace.c (db_i386_stack_trace): remove unnecessary cast, Marin Ramesa, 2013/12/10
- [PATCH 02/08] i386/i386/db_trace.c: remove forward declaration, Marin Ramesa, 2013/12/10
- [PATCH 05/08] i386/i386at/kd.c: remove forward declarations, Marin Ramesa, 2013/12/10
- [PATCH 04/08] i386/i386/ldt.c: remove forward declaration, Marin Ramesa, 2013/12/10
- [PATCH 06/08] i386/i386at/kd.c (kdmmap): remove unnecessary cast,
Marin Ramesa <=
- [PATCH 07/08] i386/i386at/kd.c (kdinit): remove forward declaration, Marin Ramesa, 2013/12/10
- [PATCH 08/08] i386/i386at/kd_mouse.c (kd_mouse_open): remove forward declaration, Marin Ramesa, 2013/12/10