Skip to content

Commit

Permalink
i2c: eg20t: remove unused function
Browse files Browse the repository at this point in the history
cppcheck rightfully says:
drivers/i2c/busses/i2c-eg20t.c:266: style: The function 'ktime_lt' is never used

Signed-off-by: Wolfram Sang <[email protected]>
Cc: Tomoya MORINAGA <[email protected]>
  • Loading branch information
wsakernel authored and Wolfram Sang committed May 12, 2012
1 parent 772ae99 commit 4a5fe5c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/i2c/busses/i2c-eg20t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a5fe5c

Please sign in to comment.