summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndre Haupt <andre@finow14.de>2007-08-30 22:18:41 +0200
committerSteve French <sfrench@us.ibm.com>2007-08-30 22:18:41 +0200
commit8594c15ad226227aaf178b7cf57f2e7291684dd4 (patch)
tree3197f19cfd6a04eed8f6d18993add0992480b1a4 /fs
parent[CIFS] fix typo in previous (diff)
downloadlinux-8594c15ad226227aaf178b7cf57f2e7291684dd4.tar.xz
linux-8594c15ad226227aaf178b7cf57f2e7291684dd4.zip
[CIFS][KJ] use abs() from kernel.h where appropriate
Signed-off-by: Andrew Haupt <andre@finow14.de> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 8eb102f940d4..4795143ff521 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -513,7 +513,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
(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))