projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772ae99
)
i2c: eg20t: remove unused function
author
Wolfram Sang
<wolfram@the-dreams.de>
Thu, 19 Apr 2012 15:13:51 +0000
(17:13 +0200)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:14 +0000
(14:28 +0200)
cppcheck rightfully says:
drivers/i2c/busses/i2c-eg20t.c:266: style: The function 'ktime_lt' is never used
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
drivers/i2c/busses/i2c-eg20t.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-eg20t.c
b/drivers/i2c/busses/i2c-eg20t.c
index
93926a7
..
5441e69
100644
(file)
--- a/
drivers/i2c/busses/i2c-eg20t.c
+++ b/
drivers/i2c/busses/i2c-eg20t.c
@@
-263,11
+263,6
@@
static void pch_i2c_init(struct i2c_algo_pch_data *adap)
init_waitqueue_head(&pch_event);
}
-static inline bool ktime_lt(const ktime_t cmp1, const ktime_t cmp2)
-{
- return cmp1.tv64 < cmp2.tv64;
-}
-
/**
* pch_i2c_wait_for_bus_idle() - check the status of bus.
* @adap: Pointer to struct i2c_algo_pch_data.