]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[CIFS][KJ] use abs() from kernel.h where appropriate
authorAndre Haupt <andre@finow14.de>
Thu, 30 Aug 2007 20:18:41 +0000 (20:18 +0000)
committerSteve 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

index 8eb102f940d433537ac2219521d692f567301439..4795143ff521d312af99b179d59a4ab736a9da19 100644 (file)
@@ -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))