Commit 8594c15a authored by Andre Haupt's avatar Andre Haupt Committed by Steve French
Browse files

[CIFS][KJ] use abs() from kernel.h where appropriate



Signed-off-by: default avatarAndrew Haupt <andre@finow14.de>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent c19eb710
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))