projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19eb71
)
[CIFS][KJ] use abs() from kernel.h where appropriate
author
Andre Haupt
<andre@finow14.de>
Thu, 30 Aug 2007 20:18:41 +0000
(20:18 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Thu, 30 Aug 2007 20:18:41 +0000
(20:18 +0000)
Signed-off-by: Andrew Haupt <andre@finow14.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c
patch
|
blob
|
history
diff --git
a/fs/cifs/cifssmb.c
b/fs/cifs/cifssmb.c
index 8eb102f940d433537ac2219521d692f567301439..4795143ff521d312af99b179d59a4ab736a9da19 100644
(file)
--- 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))