Remove redundant code
cppcheck reported: [speedread.c:151]: (style) Condition 'h<0' is always true Change-Id: I78fe0bbd205b0ca5b03a71ace81ef4f9b616e268
This commit is contained in:
parent
9ecabc0a75
commit
8628c60469
1 changed files with 2 additions and 3 deletions
|
@ -147,8 +147,7 @@ static void cleanup(void)
|
|||
/* returns height of drawn area */
|
||||
static int reset_drawing(long proportion) /* 16.16 fixed point, goes from 0 --> 1 over time */
|
||||
{
|
||||
int h = -1, w;
|
||||
if(h < 0)
|
||||
int w, h;
|
||||
rb->lcd_getstringsize("X", &w, &h);
|
||||
|
||||
/* clear word area */
|
||||
|
|
Loading…
Reference in a new issue