From a5a9ee60d62c02219ab5f2430335646beda59bc7 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 5 Apr 2011 09:37:20 +0200 Subject: Fix bad use of unsigned integers. Unsigned values should never be compared to values less than zero. Detected with "find_unsigned.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php. Signed-off-by: Lukas Fleischer --- src/mem.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mem.c') diff --git a/src/mem.c b/src/mem.c index ac43103..1e54afc 100644 --- a/src/mem.c +++ b/src/mem.c @@ -95,8 +95,6 @@ stats_del_blk (unsigned id) { struct mem_blk *o, **i; - EXIT_IF (id < 0, _("Incorrect block id")); - i = &mstats.blk; for (o = mstats.blk; o; o = o->next) { -- cgit v1.2.3