Module: wine Branch: master Commit: 1b3cbf52b2175426a55592f2891b85e55329a2bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b3cbf52b2175426a55592f289...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Feb 15 10:51:31 2017 +0100
kernel32: Remove always true if conditions (coccinellery).
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/kernel32/time.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c index 09d06e8..fbe5811 100644 --- a/dlls/kernel32/time.c +++ b/dlls/kernel32/time.c @@ -1308,11 +1308,8 @@ BOOL WINAPI FileTimeToDosDateTime( const FILETIME *ft, LPWORD fatdate, } unixtime = t; tm = gmtime( &unixtime ); - if (fattime) - *fattime = (tm->tm_hour << 11) + (tm->tm_min << 5) + (tm->tm_sec / 2); - if (fatdate) - *fatdate = ((tm->tm_year - 80) << 9) + ((tm->tm_mon + 1) << 5) - + tm->tm_mday; + *fattime = (tm->tm_hour << 11) + (tm->tm_min << 5) + (tm->tm_sec / 2); + *fatdate = ((tm->tm_year - 80) << 9) + ((tm->tm_mon + 1) << 5) + tm->tm_mday; return TRUE; }