password: remove not used variable 'second'
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
82c6ac9e07
commit
03d4554577
|
@ -42,13 +42,12 @@ int password(unsigned char *passwd, size_t length, int flags, int timeout)
|
||||||
unsigned char *buf = passwd;
|
unsigned char *buf = passwd;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
unsigned char ch;
|
unsigned char ch;
|
||||||
uint64_t start, second;
|
uint64_t start;
|
||||||
|
|
||||||
if (!passwd)
|
if (!passwd)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
start = get_time_ns();
|
start = get_time_ns();
|
||||||
second = start;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (tstc()) {
|
if (tstc()) {
|
||||||
|
|
Loading…
Reference in New Issue