From 65bb8e4452575164a36fbd503bb3d23f7061b9d1 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 6 May 2012 23:10:19 -0400 Subject: Remove extraneous parens --- firmware/drivers/fat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers/fat.c') diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index f76b10c078..51b0cba372 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -1596,9 +1596,9 @@ static void randomize_dos_name(unsigned char *name) while(i++ < 8) { /* hunt for ~ and where to put it */ - if((!tilde) && (*nameptr == '~')) + if(!tilde && *nameptr == '~') tilde = nameptr; - if((!lastpt) && ((*nameptr == ' ' || *nameptr == '~'))) + if(!lastpt && (*nameptr == ' ' || *nameptr == '~')) lastpt = nameptr; nameptr++; } -- cgit v1.2.3