[KJ][patch 2/3] CIFS SMB: use abs() from kernel.h where appropriate

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel-janitors@...>
Cc: <linux-kernel@...>, Andre Haupt <andre@...>, <sfrench@...>
Date: Thursday, August 30, 2007 - 6:37 am

From: Andre Haupt <andre@finow14.de>
Signed-off-by: Andre Haupt <andre@finow14.de>
---
Index: linus/fs/cifs/cifssmb.c
===================================================================
--- linus.orig/fs/cifs/cifssmb.c	2007-08-30 11:43:20.000000000 +0200
+++ linus/fs/cifs/cifssmb.c	2007-08-30 11:44:58.000000000 +0200
@@ -513,7 +513,7 @@ CIFSSMBNegotiate(unsigned int xid, struc
 				(int)ts.tv_sec, (int)utc.tv_sec,
 				(int)(utc.tv_sec - ts.tv_sec)));
 			val = (int)(utc.tv_sec - ts.tv_sec);
-			seconds = val < 0 ? -val : val;
+			seconds = abs(val);
 			result = (seconds / MIN_TZ_ADJ) * MIN_TZ_ADJ;
 			remain = seconds % MIN_TZ_ADJ;
 			if (remain >= (MIN_TZ_ADJ / 2))

--
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[KJ][patch 2/3] CIFS SMB: use abs() from kernel.h where appr..., , (Thu Aug 30, 6:37 am)