From 906bfb4c7ea99890665178b10e000b37bf22970f Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Wed, 25 Jan 2006 21:57:26 +0000 Subject: [PATCH] It's unsigned, no need to check for negativity git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8455 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 0a33619cbf..d33bd8ccac 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -646,13 +646,9 @@ static char* get_tag(struct wps_data* wps_data, case 'v': /* battery voltage */ { - int v = battery_voltage(); - if (v > -1) - { - snprintf(buf, buf_size, "%d.%02d", v/100, v%100); - return buf; - } else - return "?"; + unsigned int v = battery_voltage(); + snprintf(buf, buf_size, "%d.%02d", v/100, v%100); + return buf; } case 't': /* estimated battery time */