From bb0e35804842c0d082300ea7817a472561cdf77c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 6 Mar 2014 13:31:13 -0600 Subject: [PATCH] Minor cleanup of some new configurations; warning removal with GCC 4.8.2 --- nshlib/nsh_mntcmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c index 741327405..de40c8e6c 100644 --- a/nshlib/nsh_mntcmds.c +++ b/nshlib/nsh_mntcmds.c @@ -194,7 +194,7 @@ static int df_man_readable_handler(FAR const char *mountpoint, /* Find the label for size */ which = 0; - while (size >= 9999 || (size & 0x3ff) == 0 && size) + while (size >= 9999 || ((size & 0x3ff) == 0 && size != 0)) { which++; size >>= 10; @@ -205,7 +205,7 @@ static int df_man_readable_handler(FAR const char *mountpoint, /* Find the label for free */ which = 0; - while (free >= 9999 || (free & 0x3ff) == 0 && free) + while (free >= 9999 || ((free & 0x3ff) == 0 && free != 0)) { which++; free >>= 10; @@ -216,7 +216,7 @@ static int df_man_readable_handler(FAR const char *mountpoint, /* Find the label for used */ which = 0; - while (used >= 9999 || (used & 0x3ff) == 0 && used) + while (used >= 9999 || ((used & 0x3ff) == 0 && used != 0)) { which++; used >>= 10;