提交 02c4be05 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging/csr: coding style fixes in CsrTimeGet

the following warnings were fixed:
1. removed all spaces before the start of a line and used tabs
2. removed the braces around the if as it encloses only a single statement
Signed-off-by: NDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8c4a1271
...@@ -24,20 +24,18 @@ ...@@ -24,20 +24,18 @@
CsrTime CsrTimeGet(CsrTime *high) CsrTime CsrTimeGet(CsrTime *high)
{ {
struct timespec ts; struct timespec ts;
u64 time; u64 time;
CsrTime low; CsrTime low;
ts = current_kernel_time(); ts = current_kernel_time();
time = (u64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000; time = (u64) ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
if (high != NULL) if (high != NULL)
{ *high = (CsrTime) ((time >> 32) & 0xFFFFFFFF);
*high = (CsrTime) ((time >> 32) & 0xFFFFFFFF);
}
low = (CsrTime) (time & 0xFFFFFFFF); low = (CsrTime) (time & 0xFFFFFFFF);
return low; return low;
} }
EXPORT_SYMBOL_GPL(CsrTimeGet); EXPORT_SYMBOL_GPL(CsrTimeGet);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册